aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-22 06:50:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:36 +0800
commit63dc606a9c08dad5e0aae09b86178fcd3e78e867 (patch)
tree1b82eb0d3da14ab22d614d69338623086214c3db /packages/0x.js/src/utils
parent131236305bff6cdf85a7edb7e3c61c50ffbb1956 (diff)
downloaddexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar.gz
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar.bz2
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar.lz
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar.xz
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.tar.zst
dexon-sol-tools-63dc606a9c08dad5e0aae09b86178fcd3e78e867.zip
Make getZRXTokenAddress non async
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r--packages/0x.js/src/utils/order_state_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/order_state_utils.ts b/packages/0x.js/src/utils/order_state_utils.ts
index 1d8f02a18..891849424 100644
--- a/packages/0x.js/src/utils/order_state_utils.ts
+++ b/packages/0x.js/src/utils/order_state_utils.ts
@@ -55,7 +55,7 @@ export class OrderStateUtils {
// because JS doesn't support async constructors.
// Moreover - it's cached under the hood so it's equivalent to an async constructor.
const exchange = (this.orderFilledCancelledLazyStore as any).exchange as ExchangeWrapper;
- const zrxTokenAddress = await exchange.getZRXTokenAddressAsync();
+ const zrxTokenAddress = exchange.getZRXTokenAddress();
const orderHash = ZeroEx.getOrderHashHex(signedOrder);
const makerBalance = await this.balanceAndProxyAllowanceLazyStore.getBalanceAsync(
signedOrder.makerTokenAddress, signedOrder.maker,