diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 21:44:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 21:02:24 +0800 |
commit | abce410897c5b90cd70b258a5231c99817bec9c1 (patch) | |
tree | afb5d2810d9181f6dd8edf4487a4446510f751c7 | |
parent | 9594185f113c09736528dd8b8064c3f45a982cc3 (diff) | |
download | dexon-sol-tools-abce410897c5b90cd70b258a5231c99817bec9c1.tar.gz dexon-sol-tools-abce410897c5b90cd70b258a5231c99817bec9c1.tar.zst dexon-sol-tools-abce410897c5b90cd70b258a5231c99817bec9c1.zip |
Init the _etherTokenContractsByAddress
-rw-r--r-- | packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 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 b1d5a0ccc..238009759 100644 --- a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts @@ -27,7 +27,7 @@ import {TokenWrapper} from './token_wrapper'; * The caller can convert ETH into the equivalent number of wrapped ETH ERC20 tokens and back. */ export class EtherTokenWrapper extends ContractWrapper { - private _etherTokenContractsByAddress: {[address: string]: EtherTokenContract}; + private _etherTokenContractsByAddress: {[address: string]: EtherTokenContract} = {}; private _tokenWrapper: TokenWrapper; constructor(web3Wrapper: Web3Wrapper, networkId: number, abiDecoder: AbiDecoder, tokenWrapper: TokenWrapper) { super(web3Wrapper, networkId, abiDecoder); |