Skip to content

Commit

Permalink
Fix building error
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Sep 3, 2024
1 parent b09a176 commit 7566c01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions bridges/snowbridge/pallets/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@
//!
//! ## Polkadot-native tokens on Ethereum
//!
//! Tokens deposited on AssetHub pallet can be bridged to Ethereum as wrapped ERC20 tokens. As a prerequisite,
//! the token should be registered first.
//! Tokens deposited on AssetHub pallet can be bridged to Ethereum as wrapped ERC20 tokens. As a
//! prerequisite, the token should be registered first.
//!
//! * [`Call:register_token`]: Register a token location as a wrapped ERC20 contract on Ethereum.
//!
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(test)]
mod mock;
Expand Down Expand Up @@ -762,7 +761,7 @@ pub mod pallet {

impl<T: Config> MaybeEquivalence<TokenId, Location> for Pallet<T> {
fn convert(foreign_id: &TokenId) -> Option<Location> {
ForeignToNativeId::<T>::get(id)
ForeignToNativeId::<T>::get(foreign_id)
}
fn convert_back(location: &Location) -> Option<TokenId> {
NativeToForeignId::<T>::get(location)
Expand Down
2 changes: 1 addition & 1 deletion bridges/snowbridge/primitives/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl DescribeLocation for DescribeHere {
pub type AgentIdOf =
HashedDescription<AgentId, (DescribeHere, DescribeFamily<DescribeAllTerminal>)>;

#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo)]
#[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo)]
pub struct AssetMetadata {
pub name: BoundedVec<u8, ConstU32<32>>,
pub symbol: BoundedVec<u8, ConstU32<32>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ parameter_types! {
};
}

pub const SLOTS_PER_EPOCH: u32 = snowbridge_pallet_ethereum_client::config::SLOTS_PER_EPOCH as u32;

impl snowbridge_pallet_ethereum_client::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ForkVersions = ChainForkVersions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ use bridge_runtime_common::extensions::{
CheckAndBoostBridgeGrandpaTransactions, CheckAndBoostBridgeParachainsTransactions,
};
use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases;
use snowbridge_core::{
outbound::{Command, Fee},
AgentId, PricingParameters,
};
use sp_api::impl_runtime_apis;
use sp_core::{crypto::KeyTypeId, OpaqueMetadata};
use sp_runtime::{
Expand Down

0 comments on commit 7566c01

Please sign in to comment.