Skip to content

Commit

Permalink
fix: packet OpenSession.Unmarshal - wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Oct 18, 2023
1 parent 937f887 commit cd4e408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intents/packets/open_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func (p *OpenSessionPacket) Unmarshal(i *intents.Intent) error {
return err
}

if p.Code != SignMessagePacketCode {
return fmt.Errorf("packet code is not '%s', got '%s'", SignMessagePacketCode, p.Code)
if p.Code != OpenSessionPacketCode {
return fmt.Errorf("packet code is not '%s', got '%s'", OpenSessionPacketCode, p.Code)
}

return nil
Expand Down

0 comments on commit cd4e408

Please sign in to comment.