From 6248efa8bc4fb3fce12f65a77a5351fcbef61d64 Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 10 Sep 2024 00:47:16 +0100 Subject: [PATCH] remove duplicate events logs (#112) --- CHANGELOG.md | 2 ++ x/evm/keeper/state_transition.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11312de7..f1e43004 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ - (rpc) [#1688](https://github.com/evmos/ethermint/pull/1688) Align filter rule for `debug_traceBlockByNumber` +- (evm) [#112](https://github.com/zeta-chain/ethermint/pull/112) Avoid duplicate cache events emitted from evm hooks. + ### Improvements - (ante) [#1717](https://github.com/evmos/ethermint/pull/1717) Reuse sender recovery result. diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 1f60e1ae..52e6e1b4 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -236,7 +236,6 @@ func (k *Keeper) ApplyTransaction(ctx sdk.Context, msgEth *types.MsgEthereumTx) commit() // Since the post-processing can alter the log, we need to update the result res.Logs = types.NewLogsFromEth(receipt.Logs) - ctx.EventManager().EmitEvents(tmpCtx.EventManager().Events()) } }