File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
tests/ported_static/stBadOpcode Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1717 StateTestFiller ,
1818 Transaction ,
1919)
20- from execution_testing .forks import Fork
20+ from execution_testing .forks import Amsterdam , Fork
2121from execution_testing .specs .static_state .expect_section import (
2222 resolve_expect_post ,
2323)
@@ -364,6 +364,16 @@ def test_measure_gas(
364364 pre [sender ] = Account (balance = 0xBA1A9CE0BA1A9CE , nonce = 1 )
365365
366366 expect_entries_ : list [dict ] = [
367+ {
368+ "indexes" : {"data" : [0 ], "gas" : - 1 , "value" : - 1 },
369+ "network" : [">=Amsterdam" ],
370+ "result" : {contract_12 : Account (storage = {0 : 9089 })},
371+ },
372+ {
373+ "indexes" : {"data" : [1 ], "gas" : - 1 , "value" : - 1 },
374+ "network" : [">=Amsterdam" ],
375+ "result" : {contract_12 : Account (storage = {0 : 9193 })},
376+ },
367377 {
368378 "indexes" : {"data" : [0 ], "gas" : - 1 , "value" : - 1 },
369379 "network" : [">=Cancun" ],
@@ -422,12 +432,15 @@ def test_measure_gas(
422432 Bytes ("693c6139" ) + Hash (0x3B ),
423433 ]
424434 tx_gas = [16777216 ]
435+ gas_limit = tx_gas [g ]
436+ if fork >= Amsterdam :
437+ gas_limit = 20000000
425438
426439 tx = Transaction (
427440 sender = sender ,
428441 to = contract_12 ,
429442 data = tx_data [d ],
430- gas_limit = tx_gas [ g ] ,
443+ gas_limit = gas_limit ,
431444 nonce = 1 ,
432445 error = _exc ,
433446 )
You can’t perform that action at this time.
0 commit comments