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.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 | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user