Remove useless proofs from set function in contract
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
confini~=0.5.1
|
||||
confini~=0.5.2
|
||||
funga-eth~=0.5.1
|
||||
chainlib-eth~=0.0.10
|
||||
chainlib-eth~=0.0.12
|
||||
eth_erc20~=0.1.2
|
||||
eth-address-index~=0.2.4
|
||||
eth-accounts-index~=0.1.2
|
||||
eth-token-index~=0.2.4
|
||||
eth-contract-registry~=0.6.3
|
||||
eth-contract-registry~=0.7.1a2
|
||||
cic-contracts~=0.0.5
|
||||
|
||||
@@ -49,7 +49,7 @@ class TestContractRegistry(TestAddressDeclaratorBase):
|
||||
bogus_hash_two = bytearray(32)
|
||||
bogus_hash_two[0] = 0x01
|
||||
bogus_hash_two_hex = add_0x(bogus_hash_two.hex())
|
||||
(tx_hash_hex, o) = c.set(self.registry_address, self.accounts[0], 'FOO', self.registry_address, str(self.chain_spec), bogus_hash_two_hex)
|
||||
(tx_hash_hex, o) = c.set(self.registry_address, self.accounts[0], 'FOO', self.registry_address)
|
||||
r = self.rpc.do(o)
|
||||
o = receipt(r)
|
||||
rcpt = self.rpc.do(o)
|
||||
@@ -75,18 +75,18 @@ class TestContractRegistry(TestAddressDeclaratorBase):
|
||||
h = hashlib.sha256()
|
||||
h.update(str(self.chain_spec).encode('utf-8'))
|
||||
chain_description_hash = h.digest()
|
||||
|
||||
h = hashlib.sha256()
|
||||
h.update(z)
|
||||
h.update(chain_description_hash)
|
||||
z = h.digest()
|
||||
self.assertEqual(z.hex(), proofs[1])
|
||||
|
||||
h = hashlib.sha256()
|
||||
h.update(z)
|
||||
h.update(bogus_hash_two)
|
||||
z = h.digest()
|
||||
self.assertEqual(z.hex(), proofs[2])
|
||||
#
|
||||
# h = hashlib.sha256()
|
||||
# h.update(z)
|
||||
# h.update(chain_description_hash)
|
||||
# z = h.digest()
|
||||
# self.assertEqual(z.hex(), proofs[1])
|
||||
#
|
||||
# h = hashlib.sha256()
|
||||
# h.update(z)
|
||||
# h.update(bogus_hash_two)
|
||||
# z = h.digest()
|
||||
# self.assertEqual(z.hex(), proofs[2])
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user