From ade7186ffbeaa30ba2d6f6d0a543d02896b890f6 Mon Sep 17 00:00:00 2001 From: Aditya Sripal Date: Thu, 12 Jul 2018 19:06:05 -0700 Subject: [PATCH] minor cleanup --- cmd/gaia/app/app.go | 3 +++ x/auth/stdtx.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/gaia/app/app.go b/cmd/gaia/app/app.go index 77bfb9d14..ebd06f330 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 3a37dce59..6425ecf76 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{}