Bump polkadot + fix parachain unnamed field (#412)

* parachain unnamed field

* bump polkadot: cargo udpate -p xcm

* Update lock

* Fixes

* Fixes

Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
Guillaume Thiolliere
2021-04-27 18:56:08 +02:00
committed by GitHub
parent 53faf368c6
commit b03d11b8e0
5 changed files with 230 additions and 218 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ impl<T: Config> Module<T> {
Ok(xcm) => {
let location = (
Junction::Parent,
Junction::Parachain { id: sender.into() },
Junction::Parachain(sender.into()),
);
match T::XcmExecutor::execute_xcm(
location.into(),
@@ -716,7 +716,7 @@ impl<T: Config> SendXcm for Module<T> {
fn send_xcm(dest: MultiLocation, msg: Xcm<()>) -> Result<(), XcmError> {
match &dest {
// An HRMP message for a sibling parachain.
MultiLocation::X2(Junction::Parent, Junction::Parachain { id }) => {
MultiLocation::X2(Junction::Parent, Junction::Parachain(id)) => {
let msg = VersionedXcm::<()>::from(msg);
let hash = T::Hashing::hash_of(&msg);
Self::send_fragment((*id).into(), XcmpMessageFormat::ConcatenatedVersionedXcm, msg)