mirror of
git://holbrook.no/eth-contract-registry
synced 2026-04-28 03:21:05 +02:00
Separate out interface
This commit is contained in:
@@ -22,7 +22,8 @@ from hexathon import (
|
||||
)
|
||||
|
||||
# local imports
|
||||
from eth_contract_registry.registry import Registry
|
||||
from eth_contract_registry import Registry
|
||||
from eth_contract_registry.registry import ContractRegistry
|
||||
from eth_contract_registry.encoding import from_identifier_hex
|
||||
from eth_contract_registry.pytest.fixtures_registry import valid_identifiers
|
||||
|
||||
@@ -46,7 +47,7 @@ def test_set(
|
||||
bogus_hash = add_0x(os.urandom(32).hex())
|
||||
|
||||
nonce_oracle = RPCNonceOracle(roles['CONTRACT_DEPLOYER'], eth_rpc)
|
||||
builder = Registry(default_chain_spec, signer=eth_signer, nonce_oracle=nonce_oracle)
|
||||
builder = ContractRegistry(default_chain_spec, signer=eth_signer, nonce_oracle=nonce_oracle)
|
||||
|
||||
o = builder.address_of(registry, 'ContractRegistry', sender_address=eth_accounts[0])
|
||||
r = eth_rpc.do(o)
|
||||
@@ -65,6 +66,7 @@ def test_set(
|
||||
rcpt = eth_rpc.do(o)
|
||||
assert rcpt['status'] == 1
|
||||
|
||||
builder = Registry(default_chain_spec)
|
||||
o = builder.address_of(registry, 'FooContract', sender_address=eth_accounts[0])
|
||||
r = eth_rpc.do(o)
|
||||
r = abi_decode_single(ABIContractType.ADDRESS, r)
|
||||
|
||||
Reference in New Issue
Block a user