From 97434284290da7ee91f84481ea4943d68c7a4312 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Fri, 12 Nov 2021 19:07:21 +0300 Subject: [PATCH] Corrects proof writing to address declarator. --- apps/contract-migration/scripts/proofs.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/apps/contract-migration/scripts/proofs.py b/apps/contract-migration/scripts/proofs.py index 7cdfae33..7ab65e82 100644 --- a/apps/contract-migration/scripts/proofs.py +++ b/apps/contract-migration/scripts/proofs.py @@ -108,27 +108,7 @@ if __name__ == '__main__': write_metadata(token_immutable_proof_writer, token_proof_data) write_to_declarator(contract_address=args.address_declarator, contract_wrapper=contract_wrapper, - proof=identifier, + proof=hashed_token_proof, rpc=rpc, signer_address=args.signer_address, token_address=args.e) - - hashed_token_proof = hash_proof(args.token_symbol.encode('utf-8')) - identifier = bytes.fromhex(hashed_token_proof) - token_immutable_proof_writer = MetadataRequestsHandler(cic_type=MetadataPointer.NONE, identifier=identifier) - write_metadata(token_immutable_proof_writer, token_proof_data) - write_to_declarator(contract_address=args.address_declarator, - contract_wrapper=contract_wrapper, - proof=identifier, - rpc=rpc, - signer_address=args.signer_address, - token_address=args.e) - - - - - - - - -