Skip to content

fix(rpc): handle simulate precompile self moves#24567

Open
Soubhik-10 wants to merge 2 commits into
mainfrom
rpc-simulate-precompile-move-overrides
Open

fix(rpc): handle simulate precompile self moves#24567
Soubhik-10 wants to merge 2 commits into
mainfrom
rpc-simulate-precompile-move-overrides

Conversation

@Soubhik-10
Copy link
Copy Markdown
Contributor

Fixes eth_simulateV1 handling for movePrecompileToAddress when the source and destination are the same.

A self-move should only return -38022 if the source is an existing precompile. If the source is not a precompile, it should return NotAPrecompile with -32000, matching the failing Hive case:

eth_simulateV1/ethSimulate-move-to-address-itself-reference-38022 (reth_default)

Also keeps moved precompiles callable at the destination without adding the destination address to the warm precompile set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant