Skip to content

Commit

Permalink
fix(tests): remove guardrails
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jun 5, 2024
1 parent 58f786a commit f4cb5b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions tests/prague/eip2537_bls_12_381_precompiles/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ def call_contract_code(
@pytest.fixture
def call_contract_address(pre: Alloc, call_contract_code: bytes) -> Address:
"""Address where the test contract will be deployed."""
return pre.deploy_contract(
call_contract_code, address=Address(0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)
)
return pre.deploy_contract(call_contract_code)


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def test_block_hashes_history_at_transition(
sender = pre.fund_sender(10_000_000_000)
post: Dict[Address, Account] = {}

current_code_address = 0x10000
for i in range(1, blocks_before_fork):
txs: List[Transaction] = []
if i == blocks_before_fork - 1:
Expand Down Expand Up @@ -133,8 +132,7 @@ def test_block_hashes_history_at_transition(
storage=storage,
)

code_address = pre.deploy_contract(code, address=Address(current_code_address))
current_code_address += 0x100
code_address = pre.deploy_contract(code)
txs.append(
Transaction(
to=code_address,
Expand Down Expand Up @@ -178,15 +176,14 @@ def test_block_hashes_history_at_transition(
storage=storage,
)

code_address = pre.deploy_contract(code, address=Address(current_code_address))
code_address = pre.deploy_contract(code)
txs.append(
Transaction(
to=code_address,
gas_limit=10_000_000,
sender=sender,
)
)
current_code_address += 0x100
post[code_address] = Account(storage=storage)

blocks.append(Block(timestamp=FORK_TIMESTAMP, txs=txs))
Expand Down

0 comments on commit f4cb5b1

Please sign in to comment.