From d55f73af94a596dd434b97498a02f6b49539e3ba Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 22 Feb 2021 13:41:10 +0100 Subject: [PATCH] Fix chain spec parse in importuseres --- apps/contract-migration/scripts/import_users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/contract-migration/scripts/import_users.py b/apps/contract-migration/scripts/import_users.py index 675d36c7..1cc5429c 100644 --- a/apps/contract-migration/scripts/import_users.py +++ b/apps/contract-migration/scripts/import_users.py @@ -20,7 +20,7 @@ from hexathon import ( from chainlib.eth.address import to_checksum from cic_types.models.person import Person from cic_eth.api.api_task import Api -from cic_registry.chain import ChainSpec +from chainlib.chain import ChainSpec from cic_types.processor import generate_metadata_pointer logging.basicConfig(level=logging.WARNING) @@ -142,7 +142,8 @@ if __name__ == '__main__': new_address = register_eth(i, u) if u.identities.get('evm') == None: u.identities['evm'] = {} - u.identities['evm'][chain_str] = [new_address] + subchain_str = '{}:{}'.format(chain_spec.common_name(), chain_spec.network_id()) + u.identities['evm'][sub_chain_str] = [new_address] register_ussd(u)