Skip to content

ProviderError: Transaction gas limit is 30000000 and exceeds transaction gas cap of 16777216 #7751

@Amxx

Description

@Amxx

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_estimateGas rpc 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

Search terms

edr, osaka, gasLimit

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions