mirror of
git://holbrook.no/eth-contract-registry
synced 2026-03-19 03:00:27 +01:00
Fix same checksum problem in set cli command
This commit is contained in:
@@ -82,7 +82,7 @@ def main():
|
||||
identifier = config.get('_IDENTIFIER')
|
||||
|
||||
registry_address = to_checksum_address(config.get('_EXEC_ADDRESS'))
|
||||
if not config.true('_UNSAFE') and registry_address != add_0x(config.get('_EXEC_ADDRESS')):
|
||||
if not config.true('_UNSAFE') and strip_0x(registry_address) != strip_0x(config.get('_EXEC_ADDRESS')):
|
||||
raise ValueError('invalid checksum address for contract')
|
||||
|
||||
if identifier != None:
|
||||
|
||||
@@ -63,11 +63,11 @@ def main():
|
||||
c = ContractRegistry(chain_spec, signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
|
||||
|
||||
subject_address = to_checksum_address(config.get('_ADDRESS'))
|
||||
if not config.true('_UNSAFE') and subject_address != add_0x(config.get('_ADDRESS')):
|
||||
if not config.true('_UNSAFE') and strip_0x(subject_address) != strip_0x(config.get('_ADDRESS')):
|
||||
raise ValueError('invalid checksum address for subject_address')
|
||||
|
||||
registry_address = to_checksum_address(config.get('_EXEC_ADDRESS'))
|
||||
if not config.true('_UNSAFE') and registry_address != add_0x(config.get('_EXEC_ADDRESS')):
|
||||
if not config.true('_UNSAFE') and strip_0x(registry_address) != strip_0x(config.get('_EXEC_ADDRESS')):
|
||||
raise ValueError('invalid checksum address for contract')
|
||||
|
||||
chain_config_hash = config.get('_CHAIN_HASH')
|
||||
|
||||
Reference in New Issue
Block a user