diff --git a/cmd/gaia/app/app.go b/cmd/gaia/app/app.go index 77bfb9d149..ebd06f3308 100644 --- a/cmd/gaia/app/app.go +++ b/cmd/gaia/app/app.go @@ -75,6 +75,9 @@ func NewGaiaApp(logger log.Logger, db dbm.DB, traceStore io.Writer, baseAppOptio keyFeeCollection: sdk.NewKVStoreKey("fee"), } + // Set app.cdc so that Query has same result encoding + app.cdc = cdc + // define the accountMapper app.accountMapper = auth.NewAccountMapper( app.cdc, diff --git a/x/auth/stdtx.go b/x/auth/stdtx.go index 3a37dce595..6425ecf76d 100644 --- a/x/auth/stdtx.go +++ b/x/auth/stdtx.go @@ -164,7 +164,7 @@ type StdSignature struct { Sequence int64 `json:"sequence"` } -// default custom logic for transaction decoding +// logic for standard transaction decoding func DefaultTxDecoder(cdc *wire.Codec) sdk.TxDecoder { return func(txBytes []byte) (sdk.Tx, sdk.Error) { var tx = StdTx{}