From 3b359ab21b9654a975edb86875d629441c9b9ba4 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Wed, 10 Feb 2021 11:16:51 +0000 Subject: [PATCH] tests: make approveExpectFail accept bigint --- --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -605,7 +605,7 @@ export async function approveExpectFail(collectionId: number, - tokenId: number, owner: IKeyringPair, approved: IKeyringPair, amount: number = 1) { + tokenId: number, owner: IKeyringPair, approved: IKeyringPair, amount: number | bigint = 1) { await usingApi(async (api: ApiPromise) => { const approveNftTx = await api.tx.nft.approve(approved.address, collectionId, tokenId, amount); const events = await expect(submitTransactionExpectFailAsync(owner, approveNftTx)).to.be.rejected; -- gitstuff