Skip to content

Commit

Permalink
Update from bkontur running command 'fmt'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 22, 2024
1 parent c96a7ba commit 7cc63a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polkadot/xcm/src/v4/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ impl<Call: Decode + GetDispatchInfo> TryFrom<NewInstruction<Call>> for Instructi
HrmpChannelClosing { initiator, sender, recipient } =>
Self::HrmpChannelClosing { initiator, sender, recipient },
Transact { origin_kind, mut call } => {
let require_weight_at_most = call.take_decoded()
let require_weight_at_most = call
.take_decoded()
.map(|c| c.get_dispatch_info().call_weight)
.unwrap_or(Weight::MAX);
Self::Transact { origin_kind, require_weight_at_most, call: call.into() }
Expand Down

0 comments on commit 7cc63a5

Please sign in to comment.