diff --git a/gno.land/pkg/sdk/vm/msgs.go b/gno.land/pkg/sdk/vm/msgs.go index e5616fa2395..d650c23f382 100644 --- a/gno.land/pkg/sdk/vm/msgs.go +++ b/gno.land/pkg/sdk/vm/msgs.go @@ -57,7 +57,7 @@ func (msg MsgAddPackage) ValidateBasic() error { return ErrInvalidPkgPath("missing package path") } if !msg.Deposit.IsValid() { - return std.ErrTxDecode("invalid deposit") + return std.ErrInvalidCoins(msg.Deposit.String()) } // XXX validate files. return nil diff --git a/tm2/pkg/sdk/bank/msgs.go b/tm2/pkg/sdk/bank/msgs.go index d87656b8b7b..378af29f544 100644 --- a/tm2/pkg/sdk/bank/msgs.go +++ b/tm2/pkg/sdk/bank/msgs.go @@ -39,7 +39,7 @@ func (msg MsgSend) ValidateBasic() error { return std.ErrInvalidAddress("missing recipient address") } if !msg.Amount.IsValid() { - return std.ErrInvalidCoins("send amount is invalid: " + msg.Amount.String()) + return std.ErrInvalidCoins(msg.Amount.String()) } if !msg.Amount.IsAllPositive() { return std.ErrInsufficientCoins("send amount must be positive")