Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation - allow movePrecompileToAddress field to be present for state override #8023

Closed
Gabriel-Trintinalia opened this issue Dec 13, 2024 · 1 comment · Fixed by #8024
Assignees
Labels
bug Something isn't working RPC

Comments

@Gabriel-Trintinalia
Copy link
Contributor

Error Description:

When using the state override feature with the eth_call method in Besu, an error occurs due to the unrecognized movePrecompileToAddress field. This results in an InvalidJsonRpcRequestException.

Error Details:

org.hyperledger.besu.ethereum.api.jsonrpc.internal.exception.InvalidJsonRpcRequestException: Invalid account overrides parameter (index 2)
    at org.hyperledger.besu.ethereum.api.jsonrpc.internal.methods.EthCall.getAddressAccountOverrideMap(EthCall.java:125)
    at org.hyperledger.besu.ethereum.api.jsonrpc.internal.methods.EthCall.resultByBlockHeader(EthCall.java:89)

Suggested Solution:

Modify the getAddressAccountOverrideMap method to ignore unknown fields like movePrecompileToAddress until an implementation is available.

For reference, the Geth implementation for handling the movePrecompileToAddress field here.

@Gabriel-Trintinalia Gabriel-Trintinalia added bug Something isn't working RPC labels Dec 13, 2024
@Gabriel-Trintinalia
Copy link
Contributor Author

@macfarla macfarla self-assigned this Dec 13, 2024
@macfarla macfarla changed the title Simulation - Implement movePrecompileToAddress for state override Simulation - allow movePrecompileToAddress field to be present for state override Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RPC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants