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/token_registry_wrapper.ts | |
parent | 4ebf046cea8ff510567b5d05d188cd9f84ad1988 (diff) | |
download | dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar.gz dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar.bz2 dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar.lz dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar.xz dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.tar.zst dexon-0x-contracts-33216ea53f8c12fb229c5baab83d92464c67b296.zip |
Make this.proxy.invalidateContractInstance and this.tokenRegistry.invalidateContractInstance private
Diffstat (limited to 'src/contract_wrappers/token_registry_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/token_registry_wrapper.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts index 3e87e4852..c9f21e46f 100644 --- a/src/contract_wrappers/token_registry_wrapper.ts +++ b/src/contract_wrappers/token_registry_wrapper.ts @@ -13,9 +13,6 @@ export class TokenRegistryWrapper extends ContractWrapper { constructor(web3Wrapper: Web3Wrapper) { super(web3Wrapper); } - public invalidateContractInstance(): void { - delete this._tokenRegistryContractIfExists; - } /** * Retrieves all the tokens currently listed in the Token Registry smart contract * @return An array of objects that conform to the Token interface. @@ -40,6 +37,9 @@ export class TokenRegistryWrapper extends ContractWrapper { }); return tokens; } + private _invalidateContractInstance(): void { + delete this._tokenRegistryContractIfExists; + } private async _getTokenRegistryContractAsync(): Promise<TokenRegistryContract> { if (!_.isUndefined(this._tokenRegistryContractIfExists)) { return this._tokenRegistryContractIfExists; |