aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/ether_token.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-23 02:18:50 +0800
committerFabio Berger <me@fabioberger.com>2018-05-23 02:18:50 +0800
commita682b5d90e4c651e4e5d5d7c700237a9b6fe22bf (patch)
tree35690db865d8ed5ba859d9e0d9d1cd1050425c4f /packages/contracts/test/ether_token.ts
parent4a0c8d72b05152ee2fd71245873d5a70f7281058 (diff)
downloaddexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.gz
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.bz2
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.lz
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.xz
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.zst
dexon-sol-tools-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.zip
Remove 0x.js dep from contracts
Diffstat (limited to 'packages/contracts/test/ether_token.ts')
-rw-r--r--packages/contracts/test/ether_token.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/contracts/test/ether_token.ts b/packages/contracts/test/ether_token.ts
index 418fbc45e..a71d96cb8 100644
--- a/packages/contracts/test/ether_token.ts
+++ b/packages/contracts/test/ether_token.ts
@@ -1,7 +1,8 @@
-import { ContractWrappersError, ZeroEx } from '0x.js';
+import { ContractWrappersError } from '@0xproject/contract-wrappers';
import { BlockchainLifecycle, devConstants, web3Factory } from '@0xproject/dev-utils';
import { BigNumber, promisify } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
+import { Web3Wrapper } from '@0xproject/web3_wrapper';
import * as chai from 'chai';
import 'make-promises-safe';
@@ -17,7 +18,7 @@ const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
describe('EtherToken', () => {
let account: string;
- const gasPrice = ZeroEx.toBaseUnitAmount(new BigNumber(20), 9);
+ const gasPrice = Web3Wrapper.toBaseUnitAmount(new BigNumber(20), 9);
let zeroEx: ZeroEx;
let etherTokenAddress: string;
before(async () => {
@@ -103,7 +104,7 @@ describe('EtherToken', () => {
const initEthBalance = await web3Wrapper.getBalanceInWeiAsync(account);
const initEthTokenBalance = await zeroEx.token.getBalanceAsync(etherTokenAddress, account);
- const ethToDeposit = ZeroEx.toBaseUnitAmount(new BigNumber(1), 18);
+ const ethToDeposit = Web3Wrapper.toBaseUnitAmount(new BigNumber(1), 18);
const txHash = await web3Wrapper.sendTransactionAsync({
from: account,