mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 23:38:00 +00:00
Fix HRMP Sibling Location (#318)
* Fix HRMP Location * Add call to xcm handler
This commit is contained in:
@@ -305,7 +305,7 @@ construct_runtime! {
|
||||
ParachainSystem: cumulus_parachain_system::{Module, Call, Storage, Inherent, Event},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
ParachainInfo: parachain_info::{Module, Storage, Config},
|
||||
XcmHandler: xcm_handler::{Module, Event<T>, Origin},
|
||||
XcmHandler: xcm_handler::{Module, Call, Event<T>, Origin},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -122,10 +122,11 @@ impl<T: Config> HrmpMessageHandler for Module<T> {
|
||||
frame_support::debug::print!("Processing HRMP XCM: {:?}", &hash);
|
||||
match VersionedXcm::decode(&mut &msg.data[..]).map(Xcm::try_from) {
|
||||
Ok(Ok(xcm)) => {
|
||||
match T::XcmExecutor::execute_xcm(
|
||||
Junction::Parachain { id: sender.into() }.into(),
|
||||
xcm,
|
||||
) {
|
||||
let location = (
|
||||
Junction::Parent,
|
||||
Junction::Parachain { id: sender.into() },
|
||||
);
|
||||
match T::XcmExecutor::execute_xcm(location.into(), xcm) {
|
||||
Ok(..) => RawEvent::Success(hash),
|
||||
Err(e) => RawEvent::Fail(hash, e),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user