diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-12-09 00:10:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-09 00:10:05 +0800 |
commit | f109d132e400583f0985a01854a4bc9c12ead883 (patch) | |
tree | b0db651ef7aba234ba6b07ff05695a366db734f8 /packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | |
parent | 72ced622d7fddac4d17b7814f45aeea01db23959 (diff) | |
parent | e0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7 (diff) | |
download | dexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.tar.gz dexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.tar.zst dexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.zip |
Merge pull request #253 from 0xProject/feature/web3-wrapper
Refactor web3Wrapper to a separate package
Diffstat (limited to 'packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r-- | packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts index 26025f6f9..896cfde3d 100644 --- a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts @@ -1,10 +1,10 @@ +import {Web3Wrapper} from '@0xproject/web3-wrapper'; import BigNumber from 'bignumber.js'; import * as _ from 'lodash'; import {artifacts} from '../artifacts'; import {TransactionOpts, ZeroExError} from '../types'; import {assert} from '../utils/assert'; -import {Web3Wrapper} from '../web3_wrapper'; import {ContractWrapper} from './contract_wrapper'; import {EtherTokenContract} from './generated/ether_token'; @@ -18,8 +18,9 @@ export class EtherTokenWrapper extends ContractWrapper { private _etherTokenContractIfExists?: EtherTokenContract; private _tokenWrapper: TokenWrapper; private _contractAddressIfExists?: string; - constructor(web3Wrapper: Web3Wrapper, tokenWrapper: TokenWrapper, contractAddressIfExists?: string) { - super(web3Wrapper); + constructor(web3Wrapper: Web3Wrapper, networkId: number, tokenWrapper: TokenWrapper, + contractAddressIfExists?: string) { + super(web3Wrapper, networkId); this._tokenWrapper = tokenWrapper; this._contractAddressIfExists = contractAddressIfExists; } |