diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-03 21:04:22 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-05 21:56:31 +0800 |
commit | ccccaf8e1284ec2065e822b1210c1544de407e76 (patch) | |
tree | ec0546a3a675d62a275c5b903a3612b41be06a25 /packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts | |
parent | c3ce9d610434245bc187619e86bcc10a1961eff0 (diff) | |
download | dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar.gz dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar.bz2 dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar.lz dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar.xz dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.tar.zst dexon-0x-contracts-ccccaf8e1284ec2065e822b1210c1544de407e76.zip |
Pass through blockPollingInterval down to contract wrapper
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts index f393e4ed1..e70d3381c 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc20_token_wrapper.ts @@ -34,8 +34,13 @@ export class ERC20TokenWrapper extends ContractWrapper { public UNLIMITED_ALLOWANCE_IN_BASE_UNITS = constants.UNLIMITED_ALLOWANCE_IN_BASE_UNITS; private _tokenContractsByAddress: { [address: string]: ERC20TokenContract }; private _erc20ProxyWrapper: ERC20ProxyWrapper; - constructor(web3Wrapper: Web3Wrapper, networkId: number, erc20ProxyWrapper: ERC20ProxyWrapper) { - super(web3Wrapper, networkId); + constructor( + web3Wrapper: Web3Wrapper, + networkId: number, + erc20ProxyWrapper: ERC20ProxyWrapper, + blockPollingIntervalMs?: number, + ) { + super(web3Wrapper, networkId, blockPollingIntervalMs); this._tokenContractsByAddress = {}; this._erc20ProxyWrapper = erc20ProxyWrapper; } |