Skip to content

Commit bf92d7c

Browse files
authored
refactor(tests): EIP-152: reuse BLAKE2_PRECOMPILE_ADDRESS (#1635)
1 parent 172d6b9 commit bf92d7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/istanbul/eip152_blake2/test_blake2_delegatecall.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
)
1414
from ethereum_test_tools import Opcodes as Op
1515

16+
from .spec import Spec
17+
1618
REFERENCE_SPEC_GIT_PATH = "EIPS/eip-152.md"
1719
REFERENCE_SPEC_VERSION = "2762bfcff3e549ef263342e5239ef03ac2b07400"
1820

19-
BLAKE2_PRECOMPILE_ADDRESS = 0x09
20-
2121

2222
@pytest.mark.valid_from("ConstantinopleFix")
2323
def test_blake2_precompile_delegatecall(state_test: StateTestFiller, pre: Alloc, fork: Fork):
@@ -29,7 +29,7 @@ def test_blake2_precompile_delegatecall(state_test: StateTestFiller, pre: Alloc,
2929
0,
3030
Op.DELEGATECALL(
3131
gas=1,
32-
address=BLAKE2_PRECOMPILE_ADDRESS,
32+
address=Spec.BLAKE2_PRECOMPILE_ADDRESS,
3333
),
3434
)
3535
+ Op.STOP,

0 commit comments

Comments
 (0)