Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
evm: re-emit the cosmos events from cache context (#415)
Browse files Browse the repository at this point in the history
Closes: #414
  • Loading branch information
yihuang authored Aug 9, 2021
1 parent 75b7f56 commit 73c2f8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/evm/keeper/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ func (k *Keeper) ApplyTransaction(tx *ethtypes.Transaction) (*types.MsgEthereumT

// Commit and switch to committed context
if !res.Failed() {
// keep the cosmos events emitted in the cache context
k.committedCtx.EventManager().EmitEvents(k.ctx.EventManager().Events())
commit()
}

Expand Down

0 comments on commit 73c2f8e

Please sign in to comment.