aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 03:56:28 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:15:47 +0800
commit062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc (patch)
tree26223d066ed15aec3e50eca1ecb4da0fa649cef7 /packages/0x.js/src/contract_wrappers
parentb3c0d54acd1f4853f3b9dfbcf68bc90d17d586e0 (diff)
downloaddexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar.gz
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar.bz2
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar.lz
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar.xz
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.tar.zst
dexon-sol-tools-062f85e5069d0c2d56cd10bdb8a31a6d0a6c88dc.zip
Pass networkId on provider update
Diffstat (limited to 'packages/0x.js/src/contract_wrappers')
-rw-r--r--packages/0x.js/src/contract_wrappers/exchange_wrapper.ts2
-rw-r--r--packages/0x.js/src/contract_wrappers/token_wrapper.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
index 637c27361..1ff9ace3b 100644
--- a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
@@ -827,7 +827,7 @@ export class ExchangeWrapper extends ContractWrapper {
);
return contractAddress;
}
- private async _invalidateContractInstancesAsync(): Promise<void> {
+ private _invalidateContractInstances(): void {
this.unsubscribeAll();
delete this._exchangeContractIfExists;
}
diff --git a/packages/0x.js/src/contract_wrappers/token_wrapper.ts b/packages/0x.js/src/contract_wrappers/token_wrapper.ts
index cd1104580..5c6cfeaed 100644
--- a/packages/0x.js/src/contract_wrappers/token_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/token_wrapper.ts
@@ -293,7 +293,7 @@ export class TokenWrapper extends ContractWrapper {
);
return logs;
}
- private _invalidateContractInstancesAsync(): void {
+ private _invalidateContractInstances(): void {
this.unsubscribeAll();
this._tokenContractsByAddress = {};
}