Skip to content

Commit 81f2057

Browse files
committed
wip
1 parent bcff358 commit 81f2057

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

tests/frontier/opcodes/test_calldataload.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def test_calldataload(
4747
Based on https://github.com/ethereum/tests/blob/ae4791077e8fcf716136e70fe8392f1a1f1495fb/src/GeneralStateTestsFiller/VMTests/vmTests/calldatacopyFiller.yml
4848
"""
4949
address_a = pre.deploy_contract(
50-
(Op.PUSH1[calldata_offset] + Op.CALLDATALOAD + Op.PUSH1[0x0] + Op.SSTORE + Op.STOP),
50+
Op.SSTORE(0, Op.CALLDATALOAD(offset=calldata_offset)) + Op.STOP,
5151
)
5252

53-
address_b = pre.deploy_contract(
53+
to = pre.deploy_contract(
5454
Om.MSTORE(calldata, 0x0)
5555
+ Op.CALL(
5656
gas=Op.SUB(Op.GAS(), 0x100),
@@ -61,22 +61,7 @@ def test_calldataload(
6161
ret_offset=0x0,
6262
ret_size=0x0,
6363
)
64-
)
65-
66-
to = pre.deploy_contract(
67-
code=(
68-
Op.ADD(0x1000, Op.CALLDATALOAD(offset=0x4))
69-
+ Op.CALL(
70-
gas=Op.SUB(Op.GAS(), 0x100),
71-
address=address_b,
72-
value=0x0,
73-
args_offset=0x0,
74-
args_size=0x0,
75-
ret_offset=0x0,
76-
ret_size=0x0,
77-
)
78-
+ Op.STOP
79-
),
64+
+ Op.STOP
8065
)
8166

8267
tx = Transaction(

0 commit comments

Comments
 (0)