mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 02:21:03 +00:00
Allow Substrate Pallet to be Initialized via Dipatchable (#481)
* Add dispatchable for intializing pallet * Add Polkadot JS types for Substrate bridge pallet * Ensure Root is the only one that can initialize the pallet * Add some tests * Pack initialization data into struct * Only allow pallet to be initialized once * Use new initialization config in nodes * Rename ScheduledChange in Ethereum pallet We're renaming it to prevent clashes with Substrate bridge pallet type of the same name. This is relevant when importing types to Polkadot JS Apps. * Move all Polkadot JS types into one file * Appease Clippy
This commit is contained in:
committed by
Bastian Köcher
parent
d4fc7bebdc
commit
cac8319480
@@ -186,9 +186,6 @@ fn load_kovan_bridge_config() -> Option<BridgeKovanConfig> {
|
||||
|
||||
fn load_millau_bridge_config() -> Option<BridgeMillauConfig> {
|
||||
Some(BridgeMillauConfig {
|
||||
initial_header: Some(rialto_runtime::millau::initial_header()),
|
||||
initial_authority_list: rialto_runtime::millau::initial_authority_set().authorities,
|
||||
initial_set_id: rialto_runtime::millau::initial_authority_set().set_id,
|
||||
first_scheduled_change: None,
|
||||
init_data: Some(rialto_runtime::millau::init_data()),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user