Merge PR #2366: baseapp: Automatically add action tags to messages

This commit is contained in:
Dev Ojha 2018-09-21 08:54:32 -07:00 committed by Christopher Goes
parent d06c589436
commit 7823b9bb10
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ BREAKING CHANGES
* [store] Change storeInfo within the root multistore to use tmhash instead of ripemd160 \#2308
* [codec] \#2324 All referrences to wire have been renamed to codec. Additionally, wire.NewCodec is now codec.New().
* [types] \#2343 Make sdk.Msg have a names field, to facilitate automatic tagging.
* [baseapp] \#2366 Automatically add action tags to all messages
* Tendermint

View File

@ -539,6 +539,7 @@ func (app *BaseApp) runMsgs(ctx sdk.Context, msgs []sdk.Msg, mode runTxMode) (re
if mode != runTxModeCheck {
msgResult = handler(ctx, msg)
}
msgResult.Tags = append(msgResult.Tags, sdk.MakeTag("action", []byte(msg.Name())))
// NOTE: GasWanted is determined by ante handler and
// GasUsed by the GasMeter