From 53a43dc2a14279d78c465ac3ae213ab83dac8645 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 12 Mar 2020 13:46:35 -0400 Subject: [PATCH] Fix API --- codec/std/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/std/tx.go b/codec/std/tx.go index 0437eef92..595fbd848 100644 --- a/codec/std/tx.go +++ b/codec/std/tx.go @@ -76,7 +76,7 @@ func (tx Transaction) ValidateBasic() error { // encoding ensures all field names adhere to their proto definition, default // values are omitted, and follows the JSON Canonical Form. func (tx Transaction) CanonicalSignBytes(cid string, a, s uint64) ([]byte, error) { - return NewSignDoc(a, s, cid, tx.Base.Memo, tx.Base.Fee, tx.Msgs...).SignBytes() + return NewSignDoc(a, s, cid, tx.Base.Memo, tx.Base.Fee, tx.Msgs...).CanonicalSignBytes() } func NewSignDoc(a, s uint64, cid, m string, f auth.StdFee, msgs ...Message) *SignDoc {