difftreelog
tests: fix transferFromExpectSuccess helper
in: master
Transaction should be executed by accountApproved, not accountFrom
1 file changed
tests/src/util/helpers.tsdiffbeforeafterboth462 }462 }463 const transferFromTx = await api.tx.nft.transferFrom(463 const transferFromTx = await api.tx.nft.transferFrom(464 accountFrom.address, accountTo.address, collectionId, tokenId, value);464 accountFrom.address, accountTo.address, collectionId, tokenId, value);465 const events = await submitTransactionAsync(accountFrom, transferFromTx);465 const events = await submitTransactionAsync(accountApproved, transferFromTx);466 const result = getCreateItemResult(events);466 const result = getCreateItemResult(events);467 // tslint:disable-next-line:no-unused-expression467 // tslint:disable-next-line:no-unused-expression468 expect(result.success).to.be.true;468 expect(result.success).to.be.true;