mirror of
git://holbrook.no/eth-contract-registry
synced 2026-05-14 17:08:42 +02:00
Assimilate agnostic rpc from chainlib
This commit is contained in:
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
# external imports
|
||||
import pytest
|
||||
from chainlib.eth.connection import RPCConnection
|
||||
from chainlib.connection import RPCConnection
|
||||
from chainlib.eth.tx import receipt
|
||||
|
||||
# local imports
|
||||
@@ -17,12 +17,13 @@ valid_identifiers = [
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def registry(
|
||||
default_chain_spec,
|
||||
init_eth_tester,
|
||||
init_eth_rpc,
|
||||
eth_accounts,
|
||||
):
|
||||
|
||||
conn = RPCConnection.connect('default')
|
||||
conn = RPCConnection.connect(default_chain_spec, 'default')
|
||||
builder = Registry(signer=conn.signer)
|
||||
(tx_hash_hex, o) = builder.constructor(eth_accounts[0], valid_identifiers)
|
||||
r = conn.do(o)
|
||||
|
||||
Reference in New Issue
Block a user