include tags into dummy application DeliverTx response

Refs https://github.com/tendermint/tendermint/pull/835
This commit is contained in:
Anton Kaliaev 2017-11-29 20:13:59 -06:00
parent 5c29adc081
commit 72c3ea3872
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -35,7 +35,8 @@ func (app *DummyApplication) DeliverTx(tx []byte) types.ResponseDeliverTx {
} else {
app.state.Set(tx, tx)
}
return types.ResponseDeliverTx{Code: types.CodeType_OK}
tags := []*types.KVPair{{Key: "app.creator", ValueType: types.KVPair_STRING, ValueString: "jae"}}
return types.ResponseDeliverTx{Code: types.CodeType_OK, Tags: tags}
}
func (app *DummyApplication) CheckTx(tx []byte) types.ResponseCheckTx {