diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:43:06 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:43:06 +0800 |
commit | cb31b21d28c20a0153199e9388202301e1385bfe (patch) | |
tree | 4e27791ebbc07301ebeb98a33ace4dbfda5a422f | |
parent | e8a52ce1da454ab3a30b6f7d314aa85cf9534a05 (diff) | |
download | dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar.gz dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar.bz2 dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar.lz dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar.xz dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.tar.zst dexon-sol-tools-cb31b21d28c20a0153199e9388202301e1385bfe.zip |
rename invalidateExchangeContract to invalidateContractInstance
-rw-r--r-- | src/0x.js.ts | 2 | ||||
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts index 3dfdfbfcd..506ac4187 100644 --- a/src/0x.js.ts +++ b/src/0x.js.ts @@ -142,7 +142,7 @@ export class ZeroEx { */ public setProvider(provider: Web3.Provider) { this.web3Wrapper.setProvider(provider); - this.exchange.invalidateExchangeContract(); + this.exchange.invalidateContractInstance(); } /** * Signs an orderHash and returns it's elliptic curve signature diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a7abbb078..d2f7a8f42 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -12,7 +12,7 @@ export class ExchangeWrapper extends ContractWrapper { constructor(web3Wrapper: Web3Wrapper) { super(web3Wrapper); } - public invalidateExchangeContract() { + public invalidateContractInstance() { delete this.exchangeContractIfExists; } public async isValidSignatureAsync(dataHex: string, ecSignature: ECSignature, |