git.delta.rocks / unique-network / refs/commits / 78c4f0c72874

difftreelog

fix(test xcm) typos

PraetorP2023-10-02parent: #0243f65.patch.diff
in: master

1 file changed

modifiedtests/src/xcm/xcm.types.tsdiffbeforeafterboth
385 });385 });
386 }386 }
387387
388 async rejectReserveTransferUNQfrom(netwokrName: keyof typeof NETWORKS, sudoer: IKeyringPair) {388 async rejectReserveTransferUNQfrom(networkName: keyof typeof NETWORKS, sudoer: IKeyringPair) {
389 const networkUrl = mapToChainUrl(netwokrName);389 const networkUrl = mapToChainUrl(networkName);
390 const targetPlayground = getDevPlayground(netwokrName);390 const targetPlayground = getDevPlayground(networkName);
391391
392 await usingPlaygrounds(async (helper) => {392 await usingPlaygrounds(async (helper) => {
393 const testAmount = 10_000n * (10n ** UNQ_DECIMALS);393 const testAmount = 10_000n * (10n ** UNQ_DECIMALS);
434 const xcmSend = helper.constructApiCall('api.tx.polkadotXcm.send', [this._runtimeVersionedMultilocation(), maliciousXcmProgramFullId]);434 const xcmSend = helper.constructApiCall('api.tx.polkadotXcm.send', [this._runtimeVersionedMultilocation(), maliciousXcmProgramFullId]);
435 // Needed to bypass the call filter.435 // Needed to bypass the call filter.
436 const batchCall = helper.encodeApiCall('api.tx.utility.batch', [[xcmSend]]);436 const batchCall = helper.encodeApiCall('api.tx.utility.batch', [[xcmSend]]);
437 await helper.fastDemocracy.executeProposal(`${netwokrName} try to act like a reserve location for UNQ using path asset identification`,batchCall);437 await helper.fastDemocracy.executeProposal(`${networkName} try to act like a reserve location for UNQ using path asset identification`,batchCall);
438438
439 maliciousXcmProgramFullIdSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);439 maliciousXcmProgramFullIdSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);
440 }440 }
456 const xcmSend = helper.constructApiCall('api.tx.polkadotXcm.send', [this._runtimeVersionedMultilocation(), maliciousXcmProgramHereId]);456 const xcmSend = helper.constructApiCall('api.tx.polkadotXcm.send', [this._runtimeVersionedMultilocation(), maliciousXcmProgramHereId]);
457 // Needed to bypass the call filter.457 // Needed to bypass the call filter.
458 const batchCall = helper.encodeApiCall('api.tx.utility.batch', [[xcmSend]]);458 const batchCall = helper.encodeApiCall('api.tx.utility.batch', [[xcmSend]]);
459 await helper.fastDemocracy.executeProposal(`${netwokrName} try to act like a reserve location for UNQ using "here" asset identification`, batchCall);459 await helper.fastDemocracy.executeProposal(`${networkName} try to act like a reserve location for UNQ using "here" asset identification`, batchCall);
460460
461 maliciousXcmProgramHereIdSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);461 maliciousXcmProgramHereIdSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);
462 }462 }