git.delta.rocks / unique-network / refs/commits / 39437c5dd90d

difftreelog

tests: fix transferFromExpectSuccess helper

Yaroslav Bolyukin2021-01-28parent: #4622c7c.patch.diff
in: master
Transaction should be executed by accountApproved, not accountFrom

1 file changed

modifiedtests/src/util/helpers.tsdiffbeforeafterboth
462 }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-expression
468 expect(result.success).to.be.true;468 expect(result.success).to.be.true;