chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 3241dfa9c5a0ed5d415210f309425f9ae913a2b6
parent b9581e83e7af82be129870e01631685bea1987f3
Author: nolash <dev@holbrook.no>
Date:   Sun, 25 Apr 2021 15:04:59 +0200

Update pytest fixture to use new RPC constructors

Diffstat:
Mchainlib/eth/pytest/fixtures_ethtester.py | 7+++++--
Mrequirements.txt | 2+-
Msetup.cfg | 2+-
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git 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 @@ -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 @@ -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