Skip to content

Commit f4cb5b1

Browse files
committed
fix(tests): remove guardrails
1 parent 58f786a commit f4cb5b1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tests/prague/eip2537_bls_12_381_precompiles/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ def call_contract_code(
130130
@pytest.fixture
131131
def call_contract_address(pre: Alloc, call_contract_code: bytes) -> Address:
132132
"""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)
136134

137135

138136
@pytest.fixture

tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def test_block_hashes_history_at_transition(
9999
sender = pre.fund_sender(10_000_000_000)
100100
post: Dict[Address, Account] = {}
101101

102-
current_code_address = 0x10000
103102
for i in range(1, blocks_before_fork):
104103
txs: List[Transaction] = []
105104
if i == blocks_before_fork - 1:
@@ -133,8 +132,7 @@ def test_block_hashes_history_at_transition(
133132
storage=storage,
134133
)
135134

136-
code_address = pre.deploy_contract(code, address=Address(current_code_address))
137-
current_code_address += 0x100
135+
code_address = pre.deploy_contract(code)
138136
txs.append(
139137
Transaction(
140138
to=code_address,
@@ -178,15 +176,14 @@ def test_block_hashes_history_at_transition(
178176
storage=storage,
179177
)
180178

181-
code_address = pre.deploy_contract(code, address=Address(current_code_address))
179+
code_address = pre.deploy_contract(code)
182180
txs.append(
183181
Transaction(
184182
to=code_address,
185183
gas_limit=10_000_000,
186184
sender=sender,
187185
)
188186
)
189-
current_code_address += 0x100
190187
post[code_address] = Account(storage=storage)
191188

192189
blocks.append(Block(timestamp=FORK_TIMESTAMP, txs=txs))

0 commit comments

Comments
 (0)