git.delta.rocks / unique-network / refs/commits / 6ad9ed9c9777

difftreelog

fix xcmpQueue Fail event

Daniel Shiposha2023-10-20parent: #3c5a02f.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
257257
258 static Fail = this.Method('Fail', data => ({258 static Fail = this.Method('Fail', data => ({
259 messageHash: eventJsonData(data, 0),259 messageHash: eventJsonData(data, 0),
260 outcome: eventData<XcmV2TraitsError>(data, 1),260 outcome: eventData<XcmV2TraitsError>(data, 2),
261 }));261 }));
262 };262 };
263263
1306 // eslint-disable-next-line no-async-promise-executor1306 // eslint-disable-next-line no-async-promise-executor
1307 const promise = new Promise<T | null>(async (resolve) => {1307 const promise = new Promise<T | null>(async (resolve) => {
1308 const unsubscribe = await this.helper.getApi().rpc.chain.subscribeNewHeads(async header => {1308 const unsubscribe = await this.helper.getApi().rpc.chain.subscribeNewHeads(async header => {
1309 const blockNumber = header.number.toHuman();1309 const blockNumber = header.number.toJSON();
1310 const blockHash = header.hash;1310 const blockHash = header.hash;
1311 const eventIdStr = `${eventHelper.section()}.${eventHelper.method()}`;1311 const eventIdStr = `${eventHelper.section()}.${eventHelper.method()}`;
1312 const waitLimitStr = `wait blocks remaining: ${maxBlocksToWait}`;1312 const waitLimitStr = `wait blocks remaining: ${maxBlocksToWait}`;