Skip to content

Commit

Permalink
fix inbox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MariemBaccari committed Oct 10, 2023
1 parent 3205c9e commit 5c912bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be1-go/inbox/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ func NewInbox(channelID string) *Inbox {
func (i *Inbox) AddWitnessSignature(messageID string, public string, signature string) {
i.mutex.Lock()
defer i.mutex.Unlock()
msg, ok := i.GetMessage(messageID)
msg, ok := i.msgsMap[messageID]
if !ok {
// Add the signature to the pending signatures
i.pendingSignatures[messageID] = append(i.pendingSignatures[messageID], message.WitnessSignature{
Witness: public,
Signature: signature,
})
} else {
msg.WitnessSignatures = append(msg.WitnessSignatures, message.WitnessSignature{
msg.message.WitnessSignatures = append(msg.message.WitnessSignatures, message.WitnessSignature{
Witness: public,
Signature: signature,
})
Expand Down

0 comments on commit 5c912bb

Please sign in to comment.