Rename invalidateContractInstanceAsync to invalidateContractInstancesAsync

This commit is contained in:
Leonid Logvinov
2017-07-03 11:57:05 -07:00
parent 649d55f0a2
commit f09a0fca75
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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 = {};
}