git.delta.rocks / unique-network / refs/commits / 64c2ea357b51

difftreelog

tests: setContractSponsoringRateLimitExpectFailure

Yaroslav Bolyukin2021-02-02parent: #87655ec.patch.diff
in: master

1 file changed

modifiedtests/src/util/helpers.tsdiffbeforeafterboth
414 });414 });
415}415}
416
417export async function setContractSponsoringRateLimitExpectFailure(sender: IKeyringPair, contractAddress: AccountId | string, rateLimit: number) {
418 await usingApi(async (api) => {
419 const tx = api.tx.nft.setContractSponsoringRateLimit(contractAddress, rateLimit);
420 const events = await expect(submitTransactionExpectFailAsync(sender, tx)).to.be.rejected;
421 const result = getGenericResult(events);
422
423 expect(result.success).to.be.false;
424 });
425}
416426
417export async function setVariableMetaDataExpectSuccess(sender: IKeyringPair, collectionId: number, itemId: number, data: number[]) {427export async function setVariableMetaDataExpectSuccess(sender: IKeyringPair, collectionId: number, itemId: number, data: number[]) {
418 await usingApi(async (api) => {428 await usingApi(async (api) => {