minor cleanup

This commit is contained in:
Aditya Sripal 2018-07-12 19:06:05 -07:00
parent 98c19516c5
commit ade7186ffb
2 changed files with 4 additions and 1 deletions

View File

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

View File

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