Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayevbeosa Iyamu committed Dec 27, 2024
1 parent 06db1a8 commit c675df5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
pub struct ParentOrParentsPlurality;
impl Contains<Location> for ParentOrParentsPlurality {
fn contains(location: &Location) -> bool {
log::trace!(target: "xcm::contains", ?&location, "did match location");
matches!(location.unpack(), (1, []) | (1, [Plurality { .. }]))
}
}
Expand Down Expand Up @@ -300,6 +301,7 @@ impl<WaivedLocations: Contains<Location>, FeeHandler: HandleFee> FeeManager
}

fn handle_fee(fee: Assets, context: Option<&XcmContext>, reason: FeeReason) {
log::info!(target: "xcm::handle_fee", "handle fee: {:?}, with reason: {:?}", &fee, &reason);
FeeHandler::handle_fee(fee, context, reason);
}
}

0 comments on commit c675df5

Please sign in to comment.