diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2017-12-07 16:45:41 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2017-12-13 07:05:27 +0800 |
commit | 2cc410e61f75a43ce36416b7d15f897d6e7fc92c (patch) | |
tree | db2a73fe71f1f59d4f99c7ad041b705566435cdc /packages/contracts/test/ts/zrxToken.ts | |
parent | 548fda8dbaadc4827137d4b90753b306fdfd554b (diff) | |
download | dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar.gz dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar.bz2 dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar.lz dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar.xz dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.tar.zst dexon-sol-tools-2cc410e61f75a43ce36416b7d15f897d6e7fc92c.zip |
Update 0x.js version, fix build errors
Diffstat (limited to 'packages/contracts/test/ts/zrxToken.ts')
-rw-r--r-- | packages/contracts/test/ts/zrxToken.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/contracts/test/ts/zrxToken.ts b/packages/contracts/test/ts/zrxToken.ts index 471ee93f2..1c9655402 100644 --- a/packages/contracts/test/ts/zrxToken.ts +++ b/packages/contracts/test/ts/zrxToken.ts @@ -4,6 +4,7 @@ import * as chai from 'chai'; import Web3 = require('web3'); import {Artifacts} from '../../util/artifacts'; +import {constants} from '../../util/constants'; import {ContractInstance} from '../../util/types'; import {chaiSetup} from './utils/chai_setup'; @@ -25,9 +26,10 @@ contract('ZRXToken', (accounts: string[]) => { beforeEach(async () => { zeroEx = new ZeroEx(web3.currentProvider, { - exchangeContractAddress: Exchange.address, + exchangeContractAddress: Exchange.address, + networkId: constants.TESTRPC_NETWORK_ID, }); - zrxAddress = await zeroEx.exchange.getZRXTokenAddressAsync(); + zrxAddress = zeroEx.exchange.getZRXTokenAddress(); zrx = await ZRXToken.at(zrxAddress); MAX_UINT = zeroEx.token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS; }); |