Skip to content

Commit 9a846aa

Browse files
committed
compiling
1 parent f87467e commit 9a846aa

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

runtimes/peregrine/src/ismp.rs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,23 @@ impl pallet_hyperbridge::Config for Runtime {
5959
type IsmpHost = Ismp;
6060
}
6161

62+
pub struct WeightInfo;
63+
impl ismp_parachain::WeightInfo for WeightInfo {
64+
fn add_parachain(_n: u32) -> Weight {
65+
Weight::from_parts(0, 0)
66+
}
67+
fn remove_parachain(_n: u32) -> Weight {
68+
Weight::from_parts(0, 0)
69+
}
70+
fn update_parachain_consensus() -> Weight {
71+
Weight::from_parts(0, 0)
72+
}
73+
}
74+
6275
impl ismp_parachain::Config for Runtime {
6376
type RuntimeEvent = RuntimeEvent;
6477
type IsmpHost = Ismp;
65-
type WeightInfo = ();
78+
type WeightInfo = WeightInfo;
6679
}
6780

6881
pub struct AssetAdmin;
@@ -74,7 +87,7 @@ impl Get<AccountId> for AssetAdmin {
7487

7588
parameter_types! {
7689
// The hyperbridge parachain on Polkadot
77-
pub const NativeAssetId: AssetId = AssetId::from(0);
90+
pub const NativeAssetId: AssetId = AssetId(Location::here());
7891

7992
}
8093

runtimes/peregrine/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ construct_runtime! {
189189
Ismp: pallet_ismp = 90,
190190
Hyperbridge: pallet_hyperbridge = 91,
191191
IsmpParachain: ismp_parachain = 92,
192+
TokenGateway: pallet_token_gateway = 93,
192193
}
193194
}
194195

0 commit comments

Comments
 (0)