Skip to content

Commit

Permalink
Fix codegen for BHK
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Jun 30, 2024
1 parent e6ed9f4 commit d0fabaa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
41 changes: 24 additions & 17 deletions relay-clients/client-bridge-hub-kusama/src/codegen_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
//! Autogenerated runtime API
//! THIS FILE WAS AUTOGENERATED USING parity-bridges-common::runtime-codegen
//! EXECUTED COMMAND: target/debug/runtime-codegen --from-wasm-file
//! bridge-hub-kusama_runtime-v1002005.compact.compressed.wasm
//! bridge-hub-kusama_runtime-v1002005.compact.compressed.wasm -t
//! bp_polkadot_core::parachains::ParaHeadsProof=::relay_legacy_client::non_compact_proofs::bp_polkadot_core::parachains::ParaHeadsProof

#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
Expand Down Expand Up @@ -1437,22 +1438,28 @@ pub mod api {
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
submit_parachain_heads {
at_relay_block:
(::core::primitive::u32, ::subxt::ext::subxt_core::utils::H256),
parachains: ::subxt::ext::subxt_core::alloc::vec::Vec<(
::bp_polkadot_core::parachains::ParaId,
::subxt::ext::subxt_core::utils::H256,
)>,
parachain_heads_proof: ::bp_polkadot_core::parachains::ParaHeadsProof,
},
#[codec(index = 1)]
set_owner { new_owner: ::core::option::Option<::sp_core::crypto::AccountId32> },
#[codec(index = 2)]
set_operating_mode {
operating_mode: runtime_types::bp_runtime::BasicOperatingMode,
},
}
submit_parachain_heads {
at_relay_block: (
::core::primitive::u32,
::subxt::ext::subxt_core::utils::H256,
),
parachains: ::subxt::ext::subxt_core::alloc::vec::Vec<
(
::bp_polkadot_core::parachains::ParaId,
::subxt::ext::subxt_core::utils::H256,
),
>,
parachain_heads_proof: ::relay_legacy_client::non_compact_proofs::bp_polkadot_core::parachains::ParaHeadsProof,
},
#[codec(index = 1)]
set_owner {
new_owner: ::core::option::Option<::sp_core::crypto::AccountId32>,
},
#[codec(index = 2)]
set_operating_mode {
operating_mode: runtime_types::bp_runtime::BasicOperatingMode,
},
}
#[derive(::codec::Decode, ::codec::Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl SubmitParachainHeadsCallBuilder<BridgeHubPolkadotToBridgeHubKusama>
relay_bridge_hub_kusama_client::BridgeParachainCall::submit_parachain_heads {
at_relay_block: (at_relay_block.0, at_relay_block.1),
parachains,
parachain_heads_proof,
parachain_heads_proof: parachain_heads_proof.into(),
},
)
}
Expand Down

0 comments on commit d0fabaa

Please sign in to comment.