fix: index ante events for failed tx (#12013)
This commit is contained in:
parent
d416ee86b6
commit
3c0f55ccd4
|
@ -219,6 +219,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
|||
* (x/auth) [\#11482](https://github.com/cosmos/cosmos-sdk/pull/11482) Improve panic message when attempting to register a method handler for a message that does not implement sdk.Msg
|
||||
* (x/staking) [\#11596](https://github.com/cosmos/cosmos-sdk/pull/11596) Add (re)delegation getters
|
||||
* (errors) [\#11960](https://github.com/cosmos/cosmos-sdk/pull/11960) Removed 'redacted' error message from defaultErrEncoder
|
||||
* (ante) [#12013](https://github.com/cosmos/cosmos-sdk/pull/12013) Index ante events for failed tx.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ func (app *BaseApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx
|
|||
gInfo, result, anteEvents, _, err := app.runTx(runTxModeDeliver, req.Tx)
|
||||
if err != nil {
|
||||
resultStr = "failed"
|
||||
return sdkerrors.ResponseDeliverTxWithEvents(err, gInfo.GasWanted, gInfo.GasUsed, anteEvents, app.trace)
|
||||
return sdkerrors.ResponseDeliverTxWithEvents(err, gInfo.GasWanted, gInfo.GasUsed, sdk.MarkEventsToIndex(anteEvents, app.indexEvents), app.trace)
|
||||
}
|
||||
|
||||
return abci.ResponseDeliverTx{
|
||||
|
|
Loading…
Reference in New Issue