mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
change junction parachain id from named field to unnamed field (#2940)
* use unnamed field for parachain variant in junction * remove outdated comment
This commit is contained in:
committed by
GitHub
parent
55c1f7ea92
commit
41e57c4509
@@ -69,7 +69,7 @@ impl<XcmExecutor: xcm::v0::ExecuteXcm<Call>, Call> UmpSink for XcmSink<XcmExecut
|
||||
if let Ok(versioned_xcm_message) = VersionedXcm::decode(&mut msg) {
|
||||
match versioned_xcm_message {
|
||||
VersionedXcm::V0(xcm_message) => {
|
||||
let xcm_junction: Junction = Junction::Parachain { id: origin.into() };
|
||||
let xcm_junction: Junction = Junction::Parachain(origin.into());
|
||||
let xcm_location: MultiLocation = xcm_junction.into();
|
||||
match XcmExecutor::execute_xcm(xcm_location, xcm_message, max_weight) {
|
||||
Outcome::Complete(w) | Outcome::Incomplete(w, _) => Some(w),
|
||||
|
||||
Reference in New Issue
Block a user