From 39437c5dd90d59960658b4fe0b4ea4392ef9d337 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 28 Jan 2021 11:59:23 +0000 Subject: [PATCH] tests: fix transferFromExpectSuccess helper Transaction should be executed by accountApproved, not accountFrom --- --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -462,7 +462,7 @@ } const transferFromTx = await api.tx.nft.transferFrom( accountFrom.address, accountTo.address, collectionId, tokenId, value); - const events = await submitTransactionAsync(accountFrom, transferFromTx); + const events = await submitTransactionAsync(accountApproved, transferFromTx); const result = getCreateItemResult(events); // tslint:disable-next-line:no-unused-expression expect(result.success).to.be.true; -- gitstuff