diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-13 11:16:30 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-13 11:16:30 +0800 |
commit | 73e23996a64f2d0b7f6da855e2c918496e0348f6 (patch) | |
tree | 8745d5f9917c3b4a98cfc4bc98c406dfc7e00a67 /packages/0x.js | |
parent | e40bce253c961641b7eeb50b0932be530646dddc (diff) | |
download | dexon-sol-tools-73e23996a64f2d0b7f6da855e2c918496e0348f6.tar.gz dexon-sol-tools-73e23996a64f2d0b7f6da855e2c918496e0348f6.tar.zst dexon-sol-tools-73e23996a64f2d0b7f6da855e2c918496e0348f6.zip |
Remove truffle-hdwallet from 0x.js tests
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/package.json | 1 | ||||
-rw-r--r-- | packages/0x.js/test/artifacts_test.ts | 12 |
2 files changed, 3 insertions, 10 deletions
diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json index cd339e770..37a321dbd 100644 --- a/packages/0x.js/package.json +++ b/packages/0x.js/package.json @@ -89,7 +89,6 @@ "shx": "^0.2.2", "sinon": "^4.0.0", "source-map-support": "^0.5.0", - "truffle-hdwallet-provider": "^0.0.3", "tslint": "5.8.0", "typedoc": "0xProject/typedoc", "typescript": "2.7.1", 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, }; |