mirror of
git://holbrook.no/eth-contract-registry
synced 2024-12-22 20:27:32 +01:00
Remove useless extra data in registry set method
This commit is contained in:
parent
1ac2ae5d82
commit
6e03dd32ed
@ -65,7 +65,7 @@ def registry(
|
|||||||
h.update(j.encode('utf-8'))
|
h.update(j.encode('utf-8'))
|
||||||
z = h.digest()
|
z = h.digest()
|
||||||
chain_config_digest = add_0x(z.hex())
|
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)
|
r = eth_rpc.do(o)
|
||||||
o = receipt(tx_hash_hex)
|
o = receipt(tx_hash_hex)
|
||||||
r = eth_rpc.do(o)
|
r = eth_rpc.do(o)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = eth-contract-registry
|
name = eth-contract-registry
|
||||||
version = 0.7.1a2
|
version = 0.7.1
|
||||||
description = Ethereum Smart Contract key-value registry
|
description = Ethereum Smart Contract key-value registry
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
@ -54,13 +54,13 @@ def test_set(
|
|||||||
r = abi_decode_single(ABIContractType.ADDRESS, r)
|
r = abi_decode_single(ABIContractType.ADDRESS, r)
|
||||||
assert r == registry
|
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)
|
r = eth_rpc.do(o)
|
||||||
o = receipt(r)
|
o = receipt(r)
|
||||||
rcpt = eth_rpc.do(o)
|
rcpt = eth_rpc.do(o)
|
||||||
assert rcpt['status'] == 0
|
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)
|
r = eth_rpc.do(o)
|
||||||
o = receipt(r)
|
o = receipt(r)
|
||||||
rcpt = eth_rpc.do(o)
|
rcpt = eth_rpc.do(o)
|
||||||
|
Loading…
Reference in New Issue
Block a user