-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
Should be an optional context as there's not always an xcm context. |
I have this also on my TODO list :), |
The CI pipeline was cancelled due to failure one of the required jobs. |
@gilescope |
there is only one case with |
Superseded by #7563 - apparently we don't need to make it optional |
fn buy_weight(&mut self, weight: Weight, payment: Assets) -> Result<Assets, XcmError>; | ||
fn buy_weight( | ||
&mut self, | ||
ctx: Option<&XcmContext>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why as first arg? since we extending more logical to see it a last arg. Also in other contracts it appears to be the last arg.
Also we do not have ctx
naming for context so far.
(This is needed for paying xcm fees via asset conversion)
Cumulus companion: paritytech/cumulus#2954