Skip to content

Commit

Permalink
actually use nsLen for the error
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Oct 12, 2021
1 parent 677d924 commit cb9810a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/payment/types/payformessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (msg *MsgPayForMessage) ValidateBasic() error {
if nsLen := len(msg.GetMessageNamespaceId()); nsLen != NamespaceIDSize {
return fmt.Errorf(
"invalid namespace length: got %d wanted %d",
len(msg.GetMessageNamespaceId()),
nsLen,
NamespaceIDSize,
)
}
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/wirepayformessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (msg *MsgWirePayForMessage) ValidateBasic() error {
if nsLen := len(msg.GetMessageNameSpaceId()); nsLen != NamespaceIDSize {
return fmt.Errorf(
"invalid namespace length: got %d wanted %d",
len(msg.GetMessageNameSpaceId()),
nsLen,
NamespaceIDSize,
)
}
Expand Down

0 comments on commit cb9810a

Please sign in to comment.