-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
_priority:P0Critical priorityCritical priority
Description
Version of Hardhat
2.27.1
What happened?
Using
- "hardhat": "^2.27.1"
- setting evm version to osaka
Whenever doing a operation (deploying a contract, sending a transaction, performing a call), without manually setting the gasLimit, the provider somehow sets the gasLimit to 30 million, which is no longer allowed since fusaka limits the size of every single transaction to 2**24.
Minimal reproduction steps
- set evm version to osaka
- start a hardhat node
npx hardhat node
- send an
eth_estimateGasrpc call:
curl http://127.0.0.1:8545 -X POST -H "Content-Type: application/json" --data '{"method":"eth_estimateGas","params":[{"from":"0x8D97689C9818892B700e27F316cc3E41e17fBeb9","to":"0xd3CdA913deB6f67967B99D67aCDFa1712C293601"}],"id":1,"jsonrpc":"2.0"}'
output is
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"transaction gas limit (30000000) is greater than the cap (16777216)","data":{"message":"transaction gas limit (30000000) is greater than the cap (16777216)","data":null}}}
Alternativelly
- Use this branch https://github.com/Amxx/openzeppelin-contracts/pull/new/update/use-0.8.31-clz
- npm ci
- npm test
Search terms
edr, osaka, gasLimit
Metadata
Metadata
Assignees
Labels
_priority:P0Critical priorityCritical priority
Type
Projects
Status
In Progress