aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-19 23:42:25 +0800
committerFabio Berger <me@fabioberger.com>2017-06-19 23:42:25 +0800
commita8f706c79fb4244119a6d4ad03ea666689cc63fc (patch)
treef370ede530e5ae6f9b3530f7983c3e71e164156c /src/web3_wrapper.ts
parentfe63a81f6a15a521c643b74f4442cdbf037202cf (diff)
parent36fe4c01aa5a86ef820c11bb0b2e4724c68e40b5 (diff)
downloaddexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.gz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.bz2
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.lz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.xz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.zst
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.zip
Merge branch 'master' of github.com:0xProject/0x.js
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);