aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-15 23:59:13 +0800
committerGitHub <noreply@github.com>2017-06-15 23:59:13 +0800
commitf2d08ce3d99eb6c399b8328615e3d24be63115b6 (patch)
tree106a10732e18abbfc9139b31b8627dbef96b7283 /src/web3_wrapper.ts
parent76d6e6a7481a69c1c0100a90f30d5d28ec471e84 (diff)
parent5932ebb52a4421ab56c9b855f29bc26349e2ebd0 (diff)
downloaddexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.gz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.bz2
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.lz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.xz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.zst
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.zip
Merge branch 'master' into event-types
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index 05a8dc063..6bdca499f 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -2,14 +2,12 @@ import * as _ from 'lodash';
import * as Web3 from 'web3';
import * as BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');
-import {ZeroExError} from './types';
-import {assert} from './utils/assert';
export class Web3Wrapper {
private web3: Web3;
- constructor(web3: Web3) {
+ constructor(provider: Web3.Provider) {
this.web3 = new Web3();
- this.web3.setProvider(web3.currentProvider);
+ this.web3.setProvider(provider);
}
public setProvider(provider: Web3.Provider) {
this.web3.setProvider(provider);