Update pytest fixture to use new RPC constructors
This commit is contained in:
parent
b9581e83e7
commit
3241dfa9c5
@ -12,6 +12,7 @@ from crypto_dev_signer.keystore.dict import DictKeystore
|
|||||||
from chainlib.eth.unittest.base import *
|
from chainlib.eth.unittest.base import *
|
||||||
from chainlib.connection import (
|
from chainlib.connection import (
|
||||||
RPCConnection,
|
RPCConnection,
|
||||||
|
ConnType,
|
||||||
)
|
)
|
||||||
from chainlib.eth.unittest.ethtester import create_tester_signer
|
from chainlib.eth.unittest.ethtester import create_tester_signer
|
||||||
from chainlib.eth.address import to_checksum_address
|
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):
|
def rpc_with_tester(url=None, chain_spec=default_chain_spec):
|
||||||
return rpc_conn
|
return rpc_conn
|
||||||
|
|
||||||
RPCConnection.register_location('custom', default_chain_spec, tag='default', constructor=rpc_with_tester, exist_ok=True)
|
RPCConnection.register_constructor(ConnType.CUSTOM, rpc_with_tester, tag='default')
|
||||||
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='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
|
return None
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
crypto-dev-signer~=0.4.14b2
|
crypto-dev-signer~=0.4.14b3
|
||||||
pysha3==1.0.2
|
pysha3==1.0.2
|
||||||
hexathon~=0.0.1a7
|
hexathon~=0.0.1a7
|
||||||
websocket-client==0.57.0
|
websocket-client==0.57.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib
|
name = chainlib
|
||||||
version = 0.0.2a17
|
version = 0.0.2a19
|
||||||
description = Generic blockchain access library and tooling
|
description = Generic blockchain access library and tooling
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user