Skip to content

Commit 671e837

Browse files
committed
Remove redundant fixtures and callcode tests
1 parent 2a74743 commit 671e837

File tree

2 files changed

+0
-535
lines changed

2 files changed

+0
-535
lines changed

tests/istanbul/eip152_blake2/test_blake2.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,6 @@
2424
REFERENCE_SPEC_VERSION = ref_spec_152.version
2525

2626

27-
@pytest.fixture
28-
def blake2b_contract_bytecode():
29-
"""Contract code that performs a CALL to the BLAKE2b precompile and stores the result."""
30-
return (
31-
# Store all CALLDATA into memory (offset 0)
32-
Op.CALLDATACOPY(0, 0, Op.CALLDATASIZE())
33-
# Store the returned CALL status (success = 1, fail = 0) into slot 0:
34-
+ Op.SSTORE(
35-
0,
36-
# Setup stack to CALL into Blake2b with the CALLDATA and CALL into it (+ pop value)
37-
Op.CALL(
38-
address=9,
39-
args_offset=0,
40-
args_size=Op.CALLDATASIZE(),
41-
ret_offset=0x200,
42-
ret_size=0x40,
43-
),
44-
)
45-
+ Op.SSTORE(1, Op.MLOAD(0x200))
46-
+ Op.SSTORE(2, Op.MLOAD(0x220))
47-
+ Op.STOP()
48-
)
49-
50-
5127
@pytest.mark.valid_from("Istanbul")
5228
@pytest.mark.parametrize("call_opcode", [Op.CALL])
5329
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)