File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
from ethereum_test_tools .vm .opcode import Opcodes as Op
33
33
34
34
35
+ # TODO: add test which writes to already existing storage
35
36
@pytest .mark .valid_from ("Frontier" )
36
37
def test_xen_approve (
37
38
blockchain_test : BlockchainTestFiller ,
@@ -45,6 +46,8 @@ def test_xen_approve(
45
46
60_000_000 # TODO: currently hardcoded, should be read from `gas_benchmark_value`
46
47
)
47
48
49
+ # Gas limit: 60M, 2424 SSTOREs, 300 MGas/s
50
+
48
51
xen_contract = 0x06450DEE7FD2FB8E39061434BABCFC05599A6FB8
49
52
gas_threshold = 40_000
50
53
@@ -77,8 +80,8 @@ def test_xen_approve(
77
80
78
81
approval_spammer_contract = pre .deploy_contract (code = approval_loop_code )
79
82
80
- start_address = Hash (0 )
81
- approval_value = Hash (1 )
83
+ start_address = Hash (0x01 ) # Approvals to the zero address are rejected, so start at 1
84
+ approval_value = Hash (0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE )
82
85
83
86
calldata = start_address + approval_value
84
87
You can’t perform that action at this time.
0 commit comments