mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 14:21:10 +00:00
Revert execute_blob and send_blob (#4266)
Revert "pallet-xcm: Deprecate `execute` and `send` in favor of
`execute_blob` and `send_blob` (#3749)"
This reverts commit feee773d15.
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Javier Bullrich <javier@bullrich.dev>
This commit is contained in:
committed by
GitHub
parent
d29c3636fa
commit
4f3d43a0c4
@@ -167,16 +167,11 @@ where
|
||||
},
|
||||
]);
|
||||
|
||||
let encoded_versioned_xcm =
|
||||
VersionedXcm::V4(program).encode().try_into().map_err(|error| {
|
||||
log::error!(target: "runtime::on_reap_identity", "XCM too large, error: {:?}", error);
|
||||
pallet_xcm::Error::<Runtime>::XcmTooLarge
|
||||
})?;
|
||||
// send
|
||||
let _ = <pallet_xcm::Pallet<Runtime>>::send_blob(
|
||||
let _ = <pallet_xcm::Pallet<Runtime>>::send(
|
||||
RawOrigin::Root.into(),
|
||||
Box::new(VersionedLocation::V4(destination)),
|
||||
encoded_versioned_xcm,
|
||||
Box::new(VersionedXcm::V4(program)),
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user