File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
eip2537_bls_12_381_precompiles
eip2935_historical_block_hashes_from_state Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,7 @@ def call_contract_code(
130
130
@pytest .fixture
131
131
def call_contract_address (pre : Alloc , call_contract_code : bytes ) -> Address :
132
132
"""Address where the test contract will be deployed."""
133
- return pre .deploy_contract (
134
- call_contract_code , address = Address (0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA )
135
- )
133
+ return pre .deploy_contract (call_contract_code )
136
134
137
135
138
136
@pytest .fixture
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ def test_block_hashes_history_at_transition(
99
99
sender = pre .fund_sender (10_000_000_000 )
100
100
post : Dict [Address , Account ] = {}
101
101
102
- current_code_address = 0x10000
103
102
for i in range (1 , blocks_before_fork ):
104
103
txs : List [Transaction ] = []
105
104
if i == blocks_before_fork - 1 :
@@ -133,8 +132,7 @@ def test_block_hashes_history_at_transition(
133
132
storage = storage ,
134
133
)
135
134
136
- code_address = pre .deploy_contract (code , address = Address (current_code_address ))
137
- current_code_address += 0x100
135
+ code_address = pre .deploy_contract (code )
138
136
txs .append (
139
137
Transaction (
140
138
to = code_address ,
@@ -178,15 +176,14 @@ def test_block_hashes_history_at_transition(
178
176
storage = storage ,
179
177
)
180
178
181
- code_address = pre .deploy_contract (code , address = Address ( current_code_address ) )
179
+ code_address = pre .deploy_contract (code )
182
180
txs .append (
183
181
Transaction (
184
182
to = code_address ,
185
183
gas_limit = 10_000_000 ,
186
184
sender = sender ,
187
185
)
188
186
)
189
- current_code_address += 0x100
190
187
post [code_address ] = Account (storage = storage )
191
188
192
189
blocks .append (Block (timestamp = FORK_TIMESTAMP , txs = txs ))
You can’t perform that action at this time.
0 commit comments