diff --git a/CHANGELOG.md b/CHANGELOG.md index 789361078b..f46d009494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ BREAKING CHANGES * Signers of a transaction now only sign over their account and sequence number * Removed MsgChangePubKey from auth * Removed setPubKey from account mapper +* Removed GetMemo from Tx (it is still on StdTx) FEATURES * [gaiacli] You can now attach a simple text-only memo to any transaction, with the `--memo` flag diff --git a/types/tx_msg.go b/types/tx_msg.go index 0ed49906f0..12146f5b73 100644 --- a/types/tx_msg.go +++ b/types/tx_msg.go @@ -31,9 +31,6 @@ type Tx interface { // Gets the Msg. GetMsgs() []Msg - - // Gets the memo. - GetMemo() string } //__________________________________________________________ diff --git a/x/auth/ante.go b/x/auth/ante.go index 946a278e61..616ffd2cf2 100644 --- a/x/auth/ante.go +++ b/x/auth/ante.go @@ -38,7 +38,7 @@ func NewAnteHandler(am AccountMapper, fck FeeCollectionKeeper) sdk.AnteHandler { true } - memo := tx.GetMemo() + memo := stdTx.GetMemo() if len(memo) > maxMemoCharacters { return ctx, @@ -85,7 +85,7 @@ func NewAnteHandler(am AccountMapper, fck FeeCollectionKeeper) sdk.AnteHandler { signerAddr, sig := signerAddrs[i], sigs[i] // check signature, return account with incremented nonce - signBytes := StdSignBytes(ctx.ChainID(), accNums[i], sequences[i], fee, msgs, tx.GetMemo()) + signBytes := StdSignBytes(ctx.ChainID(), accNums[i], sequences[i], fee, msgs, stdTx.GetMemo()) signerAcc, res := processSig( ctx, am, signerAddr, sig, signBytes,