Skip to content

Conversation

@nowooj
Copy link

@nowooj nowooj commented Nov 24, 2025

Description

This code doesn't cover all MsgEthereumTx implementations within the rpc module, but it does cover the query part. This code can be expanded and structured into a completely independent code structure.

Removing Hash() hasn't important to do with the PR, but it was added for backward compatibility since ethermint uses Hash as a variable.

Closes: #853


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

@vladjdk
Copy link
Member

vladjdk commented Jan 7, 2026

@nowooj a few conflicts here

}
if ctx.IsCheckTx() && !simulate && d.pendingTxListener != nil {
for _, msg := range tx.GetMsgs() {
if ethTx, ok := msg.(*evmtypes.MsgEthereumTx); ok {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we leaving some *evmtypes.MsgEthereumTx as pointers instead of the interface?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that newly execute tx, for example tx coming through ante handler or mempool, would always use the latest evmtypes.MsgEthereumTx

@nowooj nowooj force-pushed the refactor/interface-rpcEthTx branch from a1d6fed to 3da79d3 Compare January 8, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor] Using the MsgEthereumTx interface in the rpc module

2 participants