You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of remote_transact we need to ensure the message being sent has the correct format. The send extrinsic will prepend XCM with DescendOrigin instruction in case it’s not coming from sovereign account. We rely on it in the precompiles and should somehow ensure it doesn’t accidentally get removed.
An approach that can be used:
thread_local!{pubstaticSENT_XCM:RefCell<Vec<(MultiLocation,Xcm<()>)>> = RefCell::new(Vec::new());}/// Sender that never returns error, always sendspubstructTestSendXcm;implSendXcmforTestSendXcm{fnsend_xcm(dest:implInto<MultiLocation>,msg:Xcm<()>) -> SendResult{SENT_XCM.with(|q| q.borrow_mut().push((dest.into(), msg)));Ok(())}}
The text was updated successfully, but these errors were encountered:
Description
With the introduction of remote_transact we need to ensure the message being sent has the correct format. The send extrinsic will prepend XCM with DescendOrigin instruction in case it’s not coming from sovereign account. We rely on it in the precompiles and should somehow ensure it doesn’t accidentally get removed.
An approach that can be used:
The text was updated successfully, but these errors were encountered: