From 23ec7abdb0a0eb8b1e206ba7754af8232971ef38 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Wed, 12 Jun 2024 15:34:19 +0200 Subject: [PATCH] change authorizeUpgrade pallet from parachainSystem to system --- app/lib/parachain_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/parachain_manager.py b/app/lib/parachain_manager.py index c6fa120..87d593e 100644 --- a/app/lib/parachain_manager.py +++ b/app/lib/parachain_manager.py @@ -213,7 +213,7 @@ def parachain_runtime_upgrade(runtime_name, para_id, runtime_wasm, check_version log.info('Code hash: {}'.format(code_hash)) # Construct parachainSystem.authorizeUpgrade(hash) call on the parachain and grab the encoded call - call_function_metadata = para_client.get_metadata_call_function("ParachainSystem", "authorize_upgrade") + call_function_metadata = para_client.get_metadata_call_function("System", "authorize_upgrade") if len(call_function_metadata['fields']) == 2: call_params = { 'code_hash': code_hash, @@ -222,7 +222,7 @@ def parachain_runtime_upgrade(runtime_name, para_id, runtime_wasm, check_version else: call_params = {'code_hash': code_hash} call = para_client.compose_call( - call_module='ParachainSystem', + call_module='System', call_function='authorize_upgrade', call_params=call_params )