diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 02:57:05 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 02:57:05 +0800 |
commit | f09a0fca75425f30cd10e5b5ab3296a7272ae1be (patch) | |
tree | d06025322541bdbc8b286022dff768952eff4737 /src | |
parent | 649d55f0a28e23c2557a9d77b325bf960a18f8f7 (diff) | |
download | dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar.gz dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar.bz2 dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar.lz dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar.xz dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.tar.zst dexon-sol-tools-f09a0fca75425f30cd10e5b5ab3296a7272ae1be.zip |
Rename invalidateContractInstanceAsync to invalidateContractInstancesAsync
Diffstat (limited to 'src')
-rw-r--r-- | src/0x.ts | 2 | ||||
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -162,7 +162,7 @@ export class ZeroEx { */ public async setProviderAsync(provider: Web3Provider) { this._web3Wrapper.setProvider(provider); - await this.exchange.invalidateContractInstanceAsync(); + await this.exchange.invalidateContractInstancesAsync(); this.tokenRegistry.invalidateContractInstance(); this.token.invalidateContractInstances(); this._proxyWrapper.invalidateContractInstance(); diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a021d0e14..3bbe4dab9 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -86,7 +86,7 @@ export class ExchangeWrapper extends ContractWrapper { this._exchangeLogEventEmitters = []; this._exchangeContractByAddress = {}; } - public async invalidateContractInstanceAsync(): Promise<void> { + public async invalidateContractInstancesAsync(): Promise<void> { await this.stopWatchingAllEventsAsync(); this._exchangeContractByAddress = {}; } |