contract-registry

Ethereum Smart Contract key-value registry
Log | Files | Refs

commit 19de2bface0176080bce9f2140a2ec0628a2fe60
parent 15cd758fae50278fc80c2fae5a009074261f0ee3
Author: nolash <dev@holbrook.no>
Date:   Tue, 16 Mar 2021 15:07:12 +0100

Assimilate agnostic rpc from chainlib

Diffstat:
Mpython/contract_registry/pytest/fixtures_registry.py | 5+++--
Mpython/gmon.out | 0
Mpython/setup.cfg | 2--
Mpython/tests/test_basic.py | 2+-
4 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/python/contract_registry/pytest/fixtures_registry.py b/python/contract_registry/pytest/fixtures_registry.py @@ -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) diff --git a/python/gmon.out b/python/gmon.out Binary files differ. diff --git a/python/setup.cfg b/python/setup.cfg @@ -28,9 +28,7 @@ include_package_data = True python_requires = >= 3.6 packages = contract_registry - contract_registry.helper contract_registry.pytest - contract_registry.runnable [options.entry_points] console_scripts = diff --git a/python/tests/test_basic.py b/python/tests/test_basic.py @@ -8,7 +8,7 @@ from chainlib.eth.tx import ( receipt, transaction, ) -from chainlib.eth.connection import RPCConnection +from chainlib.connection import RPCConnection from chainlib.eth.contract import ( ABIContractEncoder, ABIContractType,