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

Compatibility issue with Hardhat #2067

Open
jonathansmirnoff opened this issue Jul 4, 2023 · 0 comments
Open

Compatibility issue with Hardhat #2067

jonathansmirnoff opened this issue Jul 4, 2023 · 0 comments

Comments

@jonathansmirnoff
Copy link
Contributor

The last version of Hardhat uses the @nomicfoundation/hardhat-toolbox package. This package calls to the eth_estimateGas method to do the deployment. When Hardhat does the request, it uses two parameters: transaction and the block, but the node returns Method parameters invalid.
The RSK node doesn't support this request, generating incompatibility with hardhat.

Examples:

RSK Request (with error)

curl https://public-node.rsk.co \
    -X POST -H "Content-Type: application/json" \
    --data '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0x5fda30bb72b8dfe20e48a00dfc108d0915be9bb0","value":"0x1234"}, "latest"],"id":1}'

Ethereum Request

curl -d '{"id": 1, "method":"eth_estimateGas","params": [{"to":"0x5fda30bb72b8dfe20e48a00dfc108d0915be9bb0","value":"0x1234"}, "latest"]}' -X POST https://mainnet.infura.io/v3/API_KEY

RSK Request (working without the new argument)

curl https://public-node.rsk.co \
    -X POST -H "Content-Type: application/json" \
    --data '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0x5fda30bb72b8dfe20e48a00dfc108d0915be9bb0","value":"0x1234"}],"id":1}'

Relevant documentation:

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

No branches or pull requests

1 participant