diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 02:22:12 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 02:22:12 +0800 |
commit | 33216ea53f8c12fb229c5baab83d92464c67b296 (patch) | |
tree | acc0fae440db20b494e14613b2e7e8e86f91cd1f /src/contract_wrappers/proxy_wrapper.ts | |
parent | 4ebf046cea8ff510567b5d05d188cd9f84ad1988 (diff) | |
download | dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar.gz dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar.bz2 dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar.lz dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar.xz dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.tar.zst dexon-sol-tools-33216ea53f8c12fb229c5baab83d92464c67b296.zip |
Make this.proxy.invalidateContractInstance and this.tokenRegistry.invalidateContractInstance private
Diffstat (limited to 'src/contract_wrappers/proxy_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/proxy_wrapper.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/proxy_wrapper.ts b/src/contract_wrappers/proxy_wrapper.ts index bdf163f35..05d4e142c 100644 --- a/src/contract_wrappers/proxy_wrapper.ts +++ b/src/contract_wrappers/proxy_wrapper.ts @@ -9,9 +9,6 @@ import {ProxyContract} from '../types'; */ export class ProxyWrapper extends ContractWrapper { private _proxyContractIfExists?: ProxyContract; - public invalidateContractInstance(): void { - delete this._proxyContractIfExists; - } /** * Check if the Exchange contract address is authorized by the Proxy contract. * @param exchangeContractAddress The hex encoded address of the Exchange contract to call. @@ -32,6 +29,9 @@ export class ProxyWrapper extends ContractWrapper { const authorizedAddresses = await proxyContractInstance.getAuthorizedAddresses.call(); return authorizedAddresses; } + private _invalidateContractInstance(): void { + delete this._proxyContractIfExists; + } private async _getProxyContractAsync(): Promise<ProxyContract> { if (!_.isUndefined(this._proxyContractIfExists)) { return this._proxyContractIfExists; |