From e0da44974d830fc2db53b2abe315828183e7c675 Mon Sep 17 00:00:00 2001 From: skosito Date: Mon, 9 Sep 2024 23:56:34 +0200 Subject: [PATCH 1/4] test --- x/evm/keeper/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 06418402..a927197c 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -275,7 +275,7 @@ 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()) + // ctx.EventManager().EmitEvents(tmpCtx.EventManager().Events()) } } From 906ec5ccd02376d0e82d157ff6dd85bca428559e Mon Sep 17 00:00:00 2001 From: skosito Date: Mon, 9 Sep 2024 23:57:24 +0200 Subject: [PATCH 2/4] test --- x/evm/keeper/state_transition.go | 1 - 1 file changed, 1 deletion(-) diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index a927197c..5e602a7d 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -275,7 +275,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()) } } From a859b1b4b516a0ea2cf34070dbfb578a116a495c Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 10 Sep 2024 01:10:31 +0200 Subject: [PATCH 3/4] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6fa550..73af75d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,9 @@ Ref: https://keepachangelog.com/en/1.0.0/ - (rpc) [#1688](https://github.com/zeta-chain/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/zeta-chain/ethermint/pull/1717) Reuse sender recovery result. From 9cd23407953e54dce666b6883c015720e5dea474 Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 10 Sep 2024 01:11:23 +0200 Subject: [PATCH 4/4] empty line --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73af75d6..c5b38174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,7 +56,6 @@ Ref: https://keepachangelog.com/en/1.0.0/ - (evm) [#112](https://github.com/zeta-chain/ethermint/pull/112) Avoid duplicate cache events emitted from evm hooks. - ### Improvements - (ante) [#1717](https://github.com/zeta-chain/ethermint/pull/1717) Reuse sender recovery result.