Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkushin committed Jul 25, 2023
1 parent 7b4dd0b commit 32abdee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
10 changes: 5 additions & 5 deletions contracts/pallet-ibc/src/ics20_fee/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use ibc::{
Version,
},
ics24_host::identifier::{ChannelId, ConnectionId, PortId},
ics26_routing::context::{Module, ModuleCallbackContext, ModuleOutputBuilder},
ics26_routing::context::{Module as IbcModule, ModuleCallbackContext, ModuleOutputBuilder},
},
signer::Signer,
};
Expand Down Expand Up @@ -168,20 +168,20 @@ impl<T: crate::Config> FlatFeeConverter for NonFlatFeeConverter<T> {
}

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Ics20ServiceCharge<T: Config, S: Module + Clone + Default + PartialEq + Eq + Debug> {
pub struct Ics20ServiceCharge<T: Config, S: IbcModule + Clone + Default + PartialEq + Eq + Debug> {
inner: S,
_phantom: core::marker::PhantomData<T>,
}

impl<T: Config + Send + Sync, S: Module + Clone + Default + PartialEq + Eq + Debug> Default
impl<T: Config + Send + Sync, S: IbcModule + Clone + Default + PartialEq + Eq + Debug> Default
for Ics20ServiceCharge<T, S>
{
fn default() -> Self {
Self { inner: S::default(), _phantom: Default::default() }
}
}

impl<T: Config + Send + Sync, S: Module + Clone + Default + PartialEq + Eq + Debug> Module
impl<T: Config + Send + Sync, S: IbcModule + Clone + Default + PartialEq + Eq + Debug> IbcModule
for Ics20ServiceCharge<T, S>
where
u32: From<<T as frame_system::Config>::BlockNumber>,
Expand Down Expand Up @@ -328,7 +328,7 @@ where
}
}

impl<T: Config + Send + Sync, S: Module + Clone + Default + PartialEq + Eq + Debug>
impl<T: Config + Send + Sync, S: IbcModule + Clone + Default + PartialEq + Eq + Debug>
Ics20ServiceCharge<T, S>
where
<T as crate::Config>::AccountIdConversion: From<IbcAccount<T::AccountId>>,
Expand Down
6 changes: 2 additions & 4 deletions hyperspace/core/src/substrate/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ use light_client_common::config::{
};
use pallet_ibc::{events::IbcEvent as RawIbcEvent, MultiAddress, Timeout, TransferParams};
use pallet_ibc_ping::SendPingParams;
use parachain_subxt::api::runtime_types::{
ibc_primitives::Timeout as RawTimeout, parachain_runtime::MemoMessage,
};
use parachain_subxt::api::runtime_types::ibc_primitives::Timeout as RawTimeout;
use relaychain::api::runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle;
use sp_core::{crypto::AccountId32, H256};
use subxt::{
Expand Down Expand Up @@ -120,7 +118,7 @@ define_runtime_transactions!(
TransferParamsWrapper,
SendPingParamsWrapper,
parachain_subxt::api::runtime_types::pallet_ibc::Any,
MemoMessage,
String,
|x| parachain_subxt::api::tx().ibc().deliver(x),
|x, y, z, w| parachain_subxt::api::tx().ibc().transfer(x, y, z, w),
|x| parachain_subxt::api::tx().sudo().sudo(x),
Expand Down
20 changes: 10 additions & 10 deletions scripts/polkadot-launch/rococo-local.json

Large diffs are not rendered by default.

0 comments on commit 32abdee

Please sign in to comment.