Skip to content

Commit

Permalink
fix(evm): emit events from cached ctx (#1445) (#1450)
Browse files Browse the repository at this point in the history
(cherry picked from commit c135d4b)

Co-authored-by: haiyizxx <[email protected]>
  • Loading branch information
cgorenflo and haiyizxx authored Apr 26, 2022
1 parent 0883937 commit a35c256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/evm/keeper/vote_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func NewVoteHandler(cdc codec.Codec, keeper types.BaseKeeper, nexus types.Nexus,
}

writeCache()
ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events())
return nil
}
}
Expand Down Expand Up @@ -142,6 +143,7 @@ func handleVoteConfirmDeposit(ctx sdk.Context, keeper types.ChainKeeper, n types
sdk.NewAttribute(types.AttributeKeyTokenAddress, burnerInfo.TokenAddress.Hex()),
sdk.NewAttribute(types.AttributeKeyTxID, event.TxId.Hex()),
sdk.NewAttribute(types.AttributeKeyTransferID, transferID.String()),
sdk.NewAttribute(sdk.AttributeKeyAction, types.AttributeValueConfirm),
))

return nil
Expand Down

0 comments on commit a35c256

Please sign in to comment.