This commit is contained in:
Aleksandr Bezobchuk 2020-03-12 13:46:35 -04:00
parent 34f9fc439a
commit 53a43dc2a1
No known key found for this signature in database
GPG Key ID: 7DAC30FBD99879B0
1 changed files with 1 additions and 1 deletions

View File

@ -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 {