difftreelog
CORE-36. Integration tests
in: master
2 files changed
tests/src/enableDisableTransfer.test.tsdiffbeforeafterbothno changes
tests/src/util/helpers.tsdiffbeforeafterboth523 });523 });524}524}525526export async function setTransferFlagExpectSuccess(sender: IKeyringPair, collectionId: number, enabled: boolean) {527528 await usingApi(async (api) => {529530 const tx = api.tx.nft.setTransfersEnabledFlag (collectionId, enabled);531 const events = await submitTransactionAsync(sender, tx);532 const result = getGenericResult(events);533534 expect(result.success).to.be.true;535 }); 536}525537526export async function setContractSponsoringRateLimitExpectSuccess(sender: IKeyringPair, contractAddress: AccountId | string, rateLimit: number) {538export async function setContractSponsoringRateLimitExpectSuccess(sender: IKeyringPair, contractAddress: AccountId | string, rateLimit: number) {527 await usingApi(async (api) => {539 await usingApi(async (api) => {