diff options
author | Jacob Evans <dekz@dekz.net> | 2018-04-17 13:06:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 13:06:57 +0800 |
commit | 2193d9ae6ef25d08d5524f6d2622f3371dbea3d1 (patch) | |
tree | 5a6dbbf7fcb1dced1ace80c03343ca789dc49b54 /packages/0x.js/test/artifacts_test.ts | |
parent | d263f7783fabe89cc9714b596068eccdc5babc1c (diff) | |
parent | 79d01fe2d7582266dafedefee2873c9d488f4a20 (diff) | |
download | dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar.gz dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar.bz2 dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar.lz dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar.xz dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.tar.zst dexon-sol-tools-2193d9ae6ef25d08d5524f6d2622f3371dbea3d1.zip |
Merge pull request #524 from 0xProject/feature/0x.js/remove-hd-wallet-from-test
Remove truffle-hdwallet from 0x.js tests
Diffstat (limited to 'packages/0x.js/test/artifacts_test.ts')
-rw-r--r-- | packages/0x.js/test/artifacts_test.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/packages/0x.js/test/artifacts_test.ts b/packages/0x.js/test/artifacts_test.ts index 17f068a2e..40c5983bd 100644 --- a/packages/0x.js/test/artifacts_test.ts +++ b/packages/0x.js/test/artifacts_test.ts @@ -1,5 +1,5 @@ +import { web3Factory } from '@0xproject/dev-utils'; import * as fs from 'fs'; -import HDWalletProvider = require('truffle-hdwallet-provider'); import { ZeroEx } from '../src'; @@ -14,10 +14,7 @@ const TIMEOUT = 10000; describe('Artifacts', () => { describe('contracts are deployed on kovan', () => { const kovanRpcUrl = constants.KOVAN_RPC_URL; - const packageJSONContent = fs.readFileSync('package.json', 'utf-8'); - const packageJSON = JSON.parse(packageJSONContent); - const mnemonic = packageJSON.config.mnemonic; - const provider = new HDWalletProvider(mnemonic, kovanRpcUrl); + const provider = web3Factory.create({ rpcUrl: kovanRpcUrl }).currentProvider; const config = { networkId: constants.KOVAN_NETWORK_ID, }; @@ -34,10 +31,7 @@ describe('Artifacts', () => { }); describe('contracts are deployed on ropsten', () => { const ropstenRpcUrl = constants.ROPSTEN_RPC_URL; - const packageJSONContent = fs.readFileSync('package.json', 'utf-8'); - const packageJSON = JSON.parse(packageJSONContent); - const mnemonic = packageJSON.config.mnemonic; - const provider = new HDWalletProvider(mnemonic, ropstenRpcUrl); + const provider = web3Factory.create({ rpcUrl: ropstenRpcUrl }).currentProvider; const config = { networkId: constants.ROPSTEN_NETWORK_ID, }; |