Skip to content

Commit 8a20740

Browse files
committed
Fix failing tests due to EVM Pectra upgrade
1 parent b94b6a1 commit 8a20740

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

models/transaction_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func TestValidateConsensusRules(t *testing.T) {
473473
// All those fields are summed up to at most 213 bytes.
474474
baseSize := uint64(213)
475475
dataSize := TxMaxSize - baseSize
476-
gasLimit := uint64(2_500_000)
476+
gasLimit := uint64(5_500_000)
477477

478478
// Try adding a transaction with maximal allowed size
479479
tx := makeSignedTx(gasLimit, dataSize, key, signer)

tests/web3js/build_evm_state_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ it('should handle a large number of EVM interactions', async () => {
156156
gas: 55_000,
157157
gasPrice: conf.minGasPrice
158158
}, 82n)
159-
assert.equal(estimatedGas, 21358n)
159+
assert.equal(estimatedGas, 21646n)
160160

161161
estimatedGas = await web3.eth.estimateGas({
162162
from: conf.eoa.address,

tests/web3js/debug_traces_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ it('should retrieve transaction traces', async () => {
283283
txTrace,
284284
{
285285
from: conf.eoa.address.toLowerCase(),
286-
gas: '0xb50d',
286+
gas: '0xb56b',
287287
gasUsed: '0x6147',
288288
to: contractAddress.toLowerCase(),
289289
input: '0xc550f90f',
290290
output: '0x0000000000000000000000000000000000000000000000000000000000000006',
291291
calls: [
292292
{
293293
from: contractAddress.toLowerCase(),
294-
gas: '0x54e1',
294+
gas: '0x553d',
295295
gasUsed: '0x2',
296296
to: '0x0000000000000000000000010000000000000001',
297297
input: '0x53e87d66',
@@ -585,15 +585,15 @@ it('should retrieve call traces', async () => {
585585
{
586586
from: conf.eoa.address.toLowerCase(),
587587
gas: '0xcdd4',
588-
gasUsed: '0xb38f',
588+
gasUsed: '0xb3ed',
589589
to: contractAddress.toLowerCase(),
590590
input: '0xc550f90f',
591591
output: '0x0000000000000000000000000000000000000000000000000000000000000007',
592592
calls: [
593593
{
594594
from: contractAddress.toLowerCase(),
595595
gas: '0x6d44',
596-
gasUsed: '0x524a',
596+
gasUsed: '0x52a8',
597597
to: '0x0000000000000000000000010000000000000001',
598598
input: '0x53e87d66',
599599
output: '0x0000000000000000000000000000000000000000000000000000000000000007',

tests/web3js/eth_deploy_contract_and_interact_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ it('deploy contract and interact', async () => {
221221
},
222222
'0x1'
223223
)
224-
assert.equal(gasEstimate, 21510n)
224+
assert.equal(gasEstimate, 22026n)
225225

226226
gasEstimate = await web3.eth.estimateGas(
227227
{

0 commit comments

Comments
 (0)