diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:15:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:15:50 +0800 |
commit | fc7592d73f1613b11e4b48904bfb041cccca5800 (patch) | |
tree | aef03ea37e7bed7209bccca3c1965ac99d09c954 /test | |
parent | 5155f4980440f1c91006b124406c8b4a7a90e300 (diff) | |
download | dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.gz dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.bz2 dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.lz dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.xz dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.zst dexon-sol-tools-fc7592d73f1613b11e4b48904bfb041cccca5800.zip |
Fix getTransactionSenderAccountIfExistsAsync to return true senderAddress or undefined if non available
Diffstat (limited to 'test')
-rw-r--r-- | test/utils/fill_scenarios.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts index 26840bb0c..3b66937e6 100644 --- a/test/utils/fill_scenarios.ts +++ b/test/utils/fill_scenarios.ts @@ -24,12 +24,12 @@ export class FillScenarios { await this.zeroEx.token.transferAsync(takerTokenAddress, this.coinBase, takerAddress, fillableAmount); await this.zeroEx.token.setProxyAllowanceAsync(takerTokenAddress, takerAddress, fillableAmount); - const transactionSenderAccount = this.zeroEx.getTransactionSenderAccount(); + const transactionSenderAccount = await this.zeroEx.getTransactionSenderAccountIfExistsAsync(); this.zeroEx.setTransactionSenderAccount(makerAddress); const signedOrder = await orderFactory.createSignedOrderAsync(this.zeroEx, makerAddress, takerAddress, fillableAmount, makerTokenAddress, fillableAmount, takerTokenAddress, expirationUnixTimestampSec); - this.zeroEx.setTransactionSenderAccount(transactionSenderAccount); + this.zeroEx.setTransactionSenderAccount(transactionSenderAccount as string); return signedOrder; } } |