Use named parameters for indirect calls (#1823)

This commit is contained in:
Serban Iorga
2023-01-27 14:13:25 +02:00
committed by Bastian Köcher
parent a417c707d6
commit 5d875d05d3
12 changed files with 77 additions and 43 deletions
+5 -2
View File
@@ -176,10 +176,13 @@ impl<Number: Codec> ConsensusLogReader for GrandpaConsensusLogReader<Number> {
pub enum BridgeGrandpaCall<Header: HeaderT> {
/// `pallet-bridge-grandpa::Call::submit_finality_proof`
#[codec(index = 0)]
submit_finality_proof(Box<Header>, justification::GrandpaJustification<Header>),
submit_finality_proof {
finality_target: Box<Header>,
justification: justification::GrandpaJustification<Header>,
},
/// `pallet-bridge-grandpa::Call::initialize`
#[codec(index = 1)]
initialize(InitializationData<Header>),
initialize { init_data: InitializationData<Header> },
}
/// The `BridgeGrandpaCall` used by a chain.