Browse Source

include tags into dummy application DeliverTx response

Refs https://github.com/tendermint/tendermint/pull/835
pull/1780/head
Anton Kaliaev 7 years ago
parent
commit
72c3ea3872
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      example/dummy/dummy.go

+ 2
- 1
example/dummy/dummy.go 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 {


Loading…
Cancel
Save