aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-02 18:15:50 +0800
committerFabio Berger <me@fabioberger.com>2017-06-02 18:15:50 +0800
commitfc7592d73f1613b11e4b48904bfb041cccca5800 (patch)
treeaef03ea37e7bed7209bccca3c1965ac99d09c954 /test/utils
parent5155f4980440f1c91006b124406c8b4a7a90e300 (diff)
downloaddexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.gz
dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.zst
dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.zip
Fix getTransactionSenderAccountIfExistsAsync to return true senderAddress or undefined if non available
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/fill_scenarios.ts4
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;
}
}