@moonbeam-network/xcm-builder 1.0.0-dev.222 → 1.0.0-dev.223
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 -6
- package/build/index.mjs.map +1 -1
- package/package.json +4 -4
package/build/index.mjs
CHANGED
|
@@ -83,7 +83,6 @@ function applyConcreteWrapper(versionedObject) {
|
|
|
83
83
|
var BaseConfig = class {
|
|
84
84
|
module;
|
|
85
85
|
func;
|
|
86
|
-
// TODO add section and method here or some mapping that transforms the module in section and func in method, for the event monitoring
|
|
87
86
|
constructor({ module: module5, func }) {
|
|
88
87
|
this.module = module5;
|
|
89
88
|
this.func = func;
|
|
@@ -2326,8 +2325,7 @@ function xcmPallet() {
|
|
|
2326
2325
|
return [
|
|
2327
2326
|
{
|
|
2328
2327
|
[version]: {
|
|
2329
|
-
parents:
|
|
2330
|
-
// TODO put 1 to force error in source, revert to 0 to fix
|
|
2328
|
+
parents: 0,
|
|
2331
2329
|
interior: {
|
|
2332
2330
|
X1: [
|
|
2333
2331
|
{
|
|
@@ -3228,18 +3226,18 @@ function CheckDestination() {
|
|
|
3228
3226
|
GetIsSuccess().fromMessageQueueProcessed()
|
|
3229
3227
|
),
|
|
3230
3228
|
xcmpQueue: () => (events, messageId) => {
|
|
3231
|
-
const
|
|
3229
|
+
const messageIdMatcher = MatchMessageId().fromXcmpQueueHash();
|
|
3232
3230
|
const successEvent = events.find((event) => {
|
|
3233
3231
|
if (event.event.section !== "xcmpQueue" || event.event.method !== "Success") {
|
|
3234
3232
|
return false;
|
|
3235
3233
|
}
|
|
3236
|
-
return
|
|
3234
|
+
return messageIdMatcher(event, messageId);
|
|
3237
3235
|
});
|
|
3238
3236
|
const failEvent = events.find((event) => {
|
|
3239
3237
|
if (event.event.section !== "xcmpQueue" || event.event.method !== "Fail") {
|
|
3240
3238
|
return false;
|
|
3241
3239
|
}
|
|
3242
|
-
return
|
|
3240
|
+
return messageIdMatcher(event, messageId);
|
|
3243
3241
|
});
|
|
3244
3242
|
if (!successEvent && !failEvent) {
|
|
3245
3243
|
return { matched: false, success: false };
|