diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-05 16:07:16 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-05 16:07:16 +0800 |
commit | 2b547f94a44dfed029b5559b743344d5998fa3bc (patch) | |
tree | 3c5241ba9cadcfad6ee0290b497ed6780cc9fc8b /test/token_wrapper_test.ts | |
parent | c9e490bdaec53e3a93b5da8daaaf0b1d87d9de76 (diff) | |
download | dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar.gz dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar.bz2 dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar.lz dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar.xz dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.tar.zst dexon-sol-tools-2b547f94a44dfed029b5559b743344d5998fa3bc.zip |
Change non-exhange contracts to also return txHash
Diffstat (limited to 'test/token_wrapper_test.ts')
-rw-r--r-- | test/token_wrapper_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index e4223ffc7..68dca0769 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -58,7 +58,8 @@ describe('TokenWrapper', () => { const toAddress = addressWithoutFunds; const preBalance = await zeroEx.token.getBalanceAsync(token.address, toAddress); expect(preBalance).to.be.bignumber.equal(0); - await zeroEx.token.transferAsync(token.address, fromAddress, toAddress, transferAmount); + const txHash = await zeroEx.token.transferAsync(token.address, fromAddress, toAddress, transferAmount); + await zeroEx.awaitTransactionMinedAsync(txHash); const postBalance = await zeroEx.token.getBalanceAsync(token.address, toAddress); return expect(postBalance).to.be.bignumber.equal(transferAmount); }); |