Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add context
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope committed Jul 30, 2023
1 parent ddade30 commit 3397d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion primitives/utility/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl<
// If everything goes well, we charge.
fn buy_weight(
&mut self,
_ctx: &XcmContext,
weight: Weight,
payment: xcm_executor::Assets,
) -> Result<xcm_executor::Assets, XcmError> {
Expand Down Expand Up @@ -196,7 +197,7 @@ impl<
Ok(unused)
}

fn refund_weight(&mut self, weight: Weight) -> Option<MultiAsset> {
fn refund_weight(&mut self, _ctx: &XcmContext, weight: Weight) -> Option<MultiAsset> {
log::trace!(target: "xcm::weight", "TakeFirstAssetTrader::refund_weight weight: {:?}", weight);
if let Some(AssetTraderRefunder {
mut weight_outstanding,
Expand Down

0 comments on commit 3397d69

Please sign in to comment.