mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-19 15:11:05 +00:00
Update conftest.py
This commit is contained in:
parent
9bb0f25f18
commit
4d6a25f161
@ -62,26 +62,6 @@ def registration_contract(w3, tester):
|
||||
return registration_deployed
|
||||
|
||||
|
||||
@pytest.fixture(params=[0, 1, 2])
|
||||
def modified_registration_contract(
|
||||
request,
|
||||
w3,
|
||||
tester):
|
||||
registration_code = get_deposit_contract_code()
|
||||
contract_bytecode = compiler.compile_code(registration_code)['bytecode']
|
||||
contract_abi = compiler.mk_full_signature(registration_code)
|
||||
registration = w3.eth.contract(
|
||||
abi=contract_abi,
|
||||
bytecode=contract_bytecode)
|
||||
tx_hash = registration.constructor().transact()
|
||||
tx_receipt = w3.eth.waitForTransactionReceipt(tx_hash)
|
||||
registration_deployed = w3.eth.contract(
|
||||
address=tx_receipt.contractAddress,
|
||||
abi=contract_abi
|
||||
)
|
||||
return registration_deployed
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def assert_tx_failed(tester):
|
||||
def assert_tx_failed(function_to_test, exception=eth_tester.exceptions.TransactionFailed):
|
||||
|
Loading…
x
Reference in New Issue
Block a user