Skip to content

Commit

Permalink
change authorizeUpgrade pallet from parachainSystem to system (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson authored Jun 13, 2024
1 parent d70c15b commit 347ba6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/parachain_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
)
Expand Down

0 comments on commit 347ba6b

Please sign in to comment.