aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-04 02:57:05 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-04 02:57:05 +0800
commitf09a0fca75425f30cd10e5b5ab3296a7272ae1be (patch)
treed06025322541bdbc8b286022dff768952eff4737
parent649d55f0a28e23c2557a9d77b325bf960a18f8f7 (diff)
downloaddexon-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
-rw-r--r--src/0x.ts2
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 6a4c23f82..615702957 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -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 = {};
}