Closed BulatSaif closed 2 years ago
Function names in GUI https://polkadot.js.org/ and in runtime are not match.
you can use this function to get list of all functions:
substrate.get_metadata_call_functions()
If someone will needs sudoScheduleParaInitialize
functions the correct name is:
call = substrate.compose_call(
call_module='ParasSudoWrapper',
call_function='sudo_schedule_para_initialize',
call_params={
'id': '1000',
'genesis': {
'genesis_head': "0x000...",
'validation_code': "0x000...",
'parachain': True
}
}
)
I am trying to register parachains https://github.com/paritytech/cumulus#register-the-parachain
But python code gives me error:
Is there any guidelines on how to convert call from https://polkadot.js.org/ to python code?