diff --git a/chainlib/eth/pytest/fixtures_ethtester.py b/chainlib/eth/pytest/fixtures_ethtester.py index 303794c..61b0b44 100644 --- a/chainlib/eth/pytest/fixtures_ethtester.py +++ b/chainlib/eth/pytest/fixtures_ethtester.py @@ -12,6 +12,7 @@ from crypto_dev_signer.keystore.dict import DictKeystore from chainlib.eth.unittest.base import * from chainlib.connection import ( RPCConnection, + ConnType, ) from chainlib.eth.unittest.ethtester import create_tester_signer from chainlib.eth.address import to_checksum_address @@ -97,6 +98,8 @@ def init_eth_rpc( def rpc_with_tester(url=None, chain_spec=default_chain_spec): return rpc_conn - RPCConnection.register_location('custom', default_chain_spec, tag='default', constructor=rpc_with_tester, exist_ok=True) - RPCConnection.register_location('custom', default_chain_spec, tag='signer', constructor=rpc_with_tester, exist_ok=True) + RPCConnection.register_constructor(ConnType.CUSTOM, rpc_with_tester, tag='default') + RPCConnection.register_constructor(ConnType.CUSTOM, rpc_with_tester, tag='signer') + RPCConnection.register_location('custom', default_chain_spec, tag='default', exist_ok=True) + RPCConnection.register_location('custom', default_chain_spec, tag='signer', exist_ok=True) return None diff --git a/requirements.txt b/requirements.txt index c6edea0..ae265d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -crypto-dev-signer~=0.4.14b2 +crypto-dev-signer~=0.4.14b3 pysha3==1.0.2 hexathon~=0.0.1a7 websocket-client==0.57.0 diff --git a/setup.cfg b/setup.cfg index 9554f95..c32facb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib -version = 0.0.2a17 +version = 0.0.2a19 description = Generic blockchain access library and tooling author = Louis Holbrook author_email = dev@holbrook.no