@moonbeam-network/xcm-builder 1.0.0-dev.204 → 1.0.0-dev.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.mjs +4 -3
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
package/build/index.mjs
CHANGED
|
@@ -3983,9 +3983,10 @@ function getPayload({
|
|
|
3983
3983
|
`Destination ${destination.name} is not a Parachain or EvmParachain`
|
|
3984
3984
|
);
|
|
3985
3985
|
}
|
|
3986
|
-
const
|
|
3986
|
+
const isEvmDestination = EvmParachain4.is(destination);
|
|
3987
|
+
const version = getExtrinsicArgumentVersion(moonApi.tx.polkadotXcm.send);
|
|
3987
3988
|
const multilocation = moonApi.createType("XcmVersionedLocation", {
|
|
3988
|
-
|
|
3989
|
+
[version]: {
|
|
3989
3990
|
parents: 1,
|
|
3990
3991
|
interior: {
|
|
3991
3992
|
X2: [
|
|
@@ -3993,7 +3994,7 @@ function getPayload({
|
|
|
3993
3994
|
Parachain: destination.parachainId
|
|
3994
3995
|
},
|
|
3995
3996
|
getExtrinsicAccount(
|
|
3996
|
-
|
|
3997
|
+
isEvmDestination ? evmToAddress4(destinationAddress) : destinationAddress
|
|
3997
3998
|
)
|
|
3998
3999
|
]
|
|
3999
4000
|
}
|