contract-registry

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

commit 6e03dd32ed498ee6db1d951bc4eda586757ea767
parent 1ac2ae5d829beb56c6f31278a83cdf75b9702eba
Author: nolash <dev@holbrook.no>
Date:   Mon, 15 Nov 2021 14:33:47 +0100

Remove useless extra data in registry set method

Diffstat:
Mpython/eth_contract_registry/pytest/fixtures_registry.py | 2+-
Mpython/setup.cfg | 2+-
Mpython/tests/test_basic.py | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/eth_contract_registry/pytest/fixtures_registry.py b/python/eth_contract_registry/pytest/fixtures_registry.py @@ -65,7 +65,7 @@ def registry( h.update(j.encode('utf-8')) z = h.digest() chain_config_digest = add_0x(z.hex()) - (tx_hash_hex, o) = c.set(registry_address, roles['CONTRACT_DEPLOYER'], 'ContractRegistry', registry_address, chain_spec_identifier, chain_config_digest) + (tx_hash_hex, o) = c.set(registry_address, roles['CONTRACT_DEPLOYER'], 'ContractRegistry', registry_address) r = eth_rpc.do(o) o = receipt(tx_hash_hex) r = eth_rpc.do(o) diff --git a/python/setup.cfg b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-contract-registry -version = 0.7.1a2 +version = 0.7.1 description = Ethereum Smart Contract key-value registry author = Louis Holbrook author_email = dev@holbrook.no diff --git a/python/tests/test_basic.py b/python/tests/test_basic.py @@ -54,13 +54,13 @@ def test_set( r = abi_decode_single(ABIContractType.ADDRESS, r) assert r == registry - (tx_hash_hex, o) = builder.set(registry, roles['CONTRACT_DEPLOYER'], 'ContractRegistry', addr_registry, bogus_hash, bogus_hash) + (tx_hash_hex, o) = builder.set(registry, roles['CONTRACT_DEPLOYER'], 'ContractRegistry', addr_registry) r = eth_rpc.do(o) o = receipt(r) rcpt = eth_rpc.do(o) assert rcpt['status'] == 0 - (tx_hash_hex, o) = builder.set(registry, roles['CONTRACT_DEPLOYER'], 'FooContract', addr_foo, bogus_hash, bogus_hash) + (tx_hash_hex, o) = builder.set(registry, roles['CONTRACT_DEPLOYER'], 'FooContract', addr_foo) r = eth_rpc.do(o) o = receipt(r) rcpt = eth_rpc.do(o)