diff --git a/api/encode_transaction.go b/api/encode_transaction.go index d4495b649..44dacec8a 100644 --- a/api/encode_transaction.go +++ b/api/encode_transaction.go @@ -9,7 +9,7 @@ import ( errs "github.com/onflow/flow-evm-gateway/models/errors" ) -const blockGasLimit uint64 = 15_000_000 +const blockGasLimit uint64 = 120_000_000 // encodeTxFromArgs will create a transaction from the given arguments. // The resulting unsigned transaction is only supposed to be used through diff --git a/tests/web3js/eth_non_interactive_test.js b/tests/web3js/eth_non_interactive_test.js index 897c40a2e..259bca449 100644 --- a/tests/web3js/eth_non_interactive_test.js +++ b/tests/web3js/eth_non_interactive_test.js @@ -28,6 +28,7 @@ it('get block', async () => { '0x0000000000000000000000000000000000000000000000000000000000000000' ) assert.equal(block.size, 3995n) + assert.equal(block.gasLimit, 120000000n) assert.equal(block.miner, '0x0000000000000000000000030000000000000000') assert.equal( block.sha3Uncles, @@ -379,7 +380,7 @@ it('get fee history', async () => { oldestBlock: 1n, reward: [['0x96'], ['0x96']], // gas price is 150 during testing baseFeePerGas: [0n, 0n], - gasUsedRatio: [0, 0.04964366666666667] + gasUsedRatio: [0, 0.006205458333333334] } ) })