mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
cargo +nightly fmt --all (#1192)
This commit is contained in:
committed by
Bastian Köcher
parent
5842968273
commit
6396239e18
@@ -287,10 +287,11 @@ mod rococo_tests {
|
||||
Box::new(header.clone()),
|
||||
justification.clone(),
|
||||
);
|
||||
let expected = millau_runtime::BridgeGrandpaRialtoCall::<millau_runtime::Runtime>::submit_finality_proof(
|
||||
Box::new(header),
|
||||
justification,
|
||||
);
|
||||
let expected =
|
||||
millau_runtime::BridgeGrandpaCall::<millau_runtime::Runtime>::submit_finality_proof(
|
||||
Box::new(header),
|
||||
justification,
|
||||
);
|
||||
|
||||
// when
|
||||
let actual_encoded = actual.encode();
|
||||
@@ -335,10 +336,11 @@ mod westend_tests {
|
||||
header.clone(),
|
||||
justification.clone(),
|
||||
);
|
||||
let expected = millau_runtime::BridgeGrandpaRialtoCall::<millau_runtime::Runtime>::submit_finality_proof(
|
||||
Box::new(header),
|
||||
justification,
|
||||
);
|
||||
let expected =
|
||||
millau_runtime::BridgeGrandpaCall::<millau_runtime::Runtime>::submit_finality_proof(
|
||||
Box::new(header),
|
||||
justification,
|
||||
);
|
||||
|
||||
// when
|
||||
let actual_encoded = actual.encode();
|
||||
|
||||
@@ -66,7 +66,7 @@ impl SubstrateFinalitySyncPipeline for RialtoFinalityToMillau {
|
||||
header: RialtoSyncHeader,
|
||||
proof: GrandpaJustification<bp_rialto::Header>,
|
||||
) -> Bytes {
|
||||
let call = millau_runtime::BridgeGrandpaRialtoCall::<
|
||||
let call = millau_runtime::BridgeGrandpaCall::<
|
||||
millau_runtime::Runtime,
|
||||
millau_runtime::RialtoGrandpaInstance,
|
||||
>::submit_finality_proof(Box::new(header.into_inner()), proof)
|
||||
|
||||
@@ -74,7 +74,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau {
|
||||
header: WestendSyncHeader,
|
||||
proof: GrandpaJustification<bp_westend::Header>,
|
||||
) -> Bytes {
|
||||
let call = millau_runtime::BridgeGrandpaWestendCall::<
|
||||
let call = millau_runtime::BridgeGrandpaCall::<
|
||||
millau_runtime::Runtime,
|
||||
millau_runtime::WestendGrandpaInstance,
|
||||
>::submit_finality_proof(Box::new(header.into_inner()), proof)
|
||||
|
||||
@@ -75,7 +75,7 @@ macro_rules! select_bridge {
|
||||
fn encode_init_bridge(
|
||||
init_data: InitializationData<<Source as ChainBase>::Header>,
|
||||
) -> <Target as Chain>::Call {
|
||||
let initialize_call = millau_runtime::BridgeGrandpaRialtoCall::<
|
||||
let initialize_call = millau_runtime::BridgeGrandpaCall::<
|
||||
millau_runtime::Runtime,
|
||||
millau_runtime::RialtoGrandpaInstance,
|
||||
>::initialize(init_data);
|
||||
@@ -95,7 +95,7 @@ macro_rules! select_bridge {
|
||||
// our deployments may fail, because we need to initialize both Rialto -> Millau
|
||||
// and Westend -> Millau bridge. => since there's single possible sudo account,
|
||||
// one of transaction may fail with duplicate nonce error
|
||||
millau_runtime::BridgeGrandpaWestendCall::<
|
||||
millau_runtime::BridgeGrandpaCall::<
|
||||
millau_runtime::Runtime,
|
||||
millau_runtime::WestendGrandpaInstance,
|
||||
>::initialize(init_data)
|
||||
|
||||
@@ -112,7 +112,7 @@ impl RegisterParachain {
|
||||
|
||||
// step 1: reserve a parachain id
|
||||
let relay_genesis_hash = *relay_client.genesis_hash();
|
||||
let relay_sudo_account: AccountIdOf<Relaychain> = relay_sign.public().clone().into();
|
||||
let relay_sudo_account: AccountIdOf<Relaychain> = relay_sign.public().into();
|
||||
let reserve_parachain_id_call: CallOf<Relaychain> = ParaRegistrarCall::reserve().into();
|
||||
let reserve_parachain_signer = relay_sign.clone();
|
||||
wait_until_transaction_is_finalized::<Relaychain>(
|
||||
|
||||
@@ -134,9 +134,9 @@ impl ResubmitTransactions {
|
||||
transaction: None,
|
||||
resubmitted: 0,
|
||||
stalled_for: Zero::zero(),
|
||||
stalled_for_limit: self.stalled_blocks.into(),
|
||||
tip_step: self.tip_step.cast().into(),
|
||||
tip_limit: self.tip_limit.cast().into(),
|
||||
stalled_for_limit: self.stalled_blocks as _,
|
||||
tip_step: self.tip_step.cast() as _,
|
||||
tip_limit: self.tip_limit.cast() as _,
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user