Skip to content

Commit

Permalink
fix(kreivo-runtime): remove redundant prefix check for reserved assets
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Jun 27, 2024
1 parent d781f49 commit 6d15c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/kreivo/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ fn matches_prefix(prefix: &Location, loc: &Location) -> bool {
}
pub struct ReserveAssetsFrom<T>(PhantomData<T>);
impl<Prefix: Get<Location>> ContainsPair<Asset, Location> for ReserveAssetsFrom<Prefix> {
fn contains(asset: &Asset, origin: &Location) -> bool {
log::trace!(target: "xcm::AssetsFrom", "prefix: {:?}, origin: {:?}", Prefix::get(), origin);
&Prefix::get() == origin && matches_prefix(&Prefix::get(), &asset.id.0)
fn contains(asset: &Asset, _origin: &Location) -> bool {
log::trace!(target: "xcm::AssetsFrom", "prefix: {:?}, origin: {:?}", Prefix::get(), _origin);
matches_prefix(&Prefix::get(), &asset.id.0)
}
}

Expand Down

0 comments on commit 6d15c2c

Please sign in to comment.