Skip to content

Commit 6f64a45

Browse files
authored
fix(tests): fix storage slot of actual value for eip7516_blobgasfee tests in execute remote (#2266)
* Fix storage slot of expected value Signed-off-by: Luis Mastrangelo <[email protected]> * Fix test for `fill` mode Signed-off-by: Luis Mastrangelo <[email protected]> * Apply reviewer's suggestion to rename parameter Signed-off-by: Luis Mastrangelo <[email protected]> * Apply suggestion to use `SELFBALANCE` as result slot Signed-off-by: Luis Mastrangelo <[email protected]> --------- Signed-off-by: Luis Mastrangelo <[email protected]>
1 parent 7582d85 commit 6f64a45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cancun/eip7516_blobgasfee/test_blobgasfee_opcode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def caller_code(
5252
callee_address: Address,
5353
) -> Bytecode:
5454
"""Bytecode used to call the bytecode containing the BLOBBASEFEE opcode."""
55-
return Op.SSTORE(Op.NUMBER, Op.CALL(gas=call_gas, address=callee_address))
55+
return Op.SSTORE(Op.SELFBALANCE, Op.CALL(gas=call_gas, address=callee_address))
5656

5757

5858
@pytest.fixture
@@ -83,6 +83,7 @@ def tx(pre: Alloc, caller_address: Address) -> Transaction:
8383
sender=pre.fund_eoa(),
8484
gas_limit=1_000_000,
8585
to=caller_address,
86+
value=1,
8687
)
8788

8889

0 commit comments

Comments
 (0)