Skip to content

Comments

fix(rpc-types-eth): add serde alias for MovePrecompileToAddress#3589

Merged
onbjerg merged 1 commit intoalloy-rs:mainfrom
mattsse:fix/account-override-move-precompile-alias
Jan 25, 2026
Merged

fix(rpc-types-eth): add serde alias for MovePrecompileToAddress#3589
onbjerg merged 1 commit intoalloy-rs:mainfrom
mattsse:fix/account-override-move-precompile-alias

Conversation

@mattsse
Copy link
Member

@mattsse mattsse commented Jan 25, 2026

Summary

Accept both camelCase (movePrecompileToAddress) and PascalCase (MovePrecompileToAddress) for the move_precompile_to field in AccountOverride.

Context

The hive test fixtures at ethereum/execution-apis use PascalCase MovePrecompileToAddress for this field, but the OpenRPC spec and geth use camelCase movePrecompileToAddress.

Adding a serde alias allows accepting both variants for backwards compatibility, fixing the parsing error:

unknown field `MovePrecompileToAddress`, expected one of `balance`, `nonce`, `code`, `state`, `stateDiff`, `movePrecompileToAddress`

Test

Fixes hive tests:

  • eth_simulateV1/ethSimulate-move-ecrecover-and-call-old-and-new
  • eth_simulateV1/ethSimulate-move-ecrecover-and-call
  • Other move-precompile tests

Accept both camelCase (movePrecompileToAddress) and PascalCase
(MovePrecompileToAddress) for backwards compatibility with test fixtures
that use the PascalCase variant.

Amp-Thread-ID: https://ampcode.com/threads/T-019bf5ac-dd59-76c0-8ba8-8739e84b6a33
Co-authored-by: Amp <[email protected]>
@onbjerg onbjerg merged commit 615f4c6 into alloy-rs:main Jan 25, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this to Done in Alloy Jan 25, 2026
Rimeeeeee added a commit to Soubhik-10/alloy that referenced this pull request Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants