Remove duplicate cosmos event emission in EVM transaction processing#3
Conversation
WalkthroughThe pull request removes a redundant event emission in the EVM state transition logic to prevent double event emission after a transaction is processed. Additionally, the CI workflow is updated by deleting the "Go vulnerability check" step from the dependencies workflow file. Changes
Sequence Diagram(s)sequenceDiagram
participant MainCtx as Main Context
participant TmpCtx as Temp Context
participant PostTx as PostTxProcessing
MainCtx->>TmpCtx: Create CacheContext
TmpCtx->>PostTx: Execute PostTxProcessing
PostTx-->>TmpCtx: Success
TmpCtx->>MainCtx: Commit (includes internal event emission)
Note over MainCtx: No manual event emission after commit
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
923f9bc to
03c524c
Compare
The change removes `ctx.EventManager().EmitEvents()` call that was duplicating events already emitted in the temporary context. This prevents double emission of the same events during EVM transaction execution. The events are already properly handled in the temporary context's commit phase.
03c524c to
c02274b
Compare
Remove duplicate cosmos event emission in EVM transaction processing
Description
The change removes
ctx.EventManager().EmitEvents()call that was duplicating events already emitted in the temporary context. This prevents double emission of the same events during EVM transaction execution. The events are already properly handled in the temporary context's commit phase.That CacheContext would emit event internally in version 0.5.0+ of cosmos, which
Closes #2
Summary by CodeRabbit
Chores
Refactor