From a45f6ff4af2f79911af6c64dff8b684651c05c72 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 4 Jul 2017 11:48:41 -0700 Subject: Fix the bug when didn't invalidate etherToken contract instance --- src/contract_wrappers/ether_token_wrapper.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/contract_wrappers') diff --git a/src/contract_wrappers/ether_token_wrapper.ts b/src/contract_wrappers/ether_token_wrapper.ts index 76e7289b7..03d714bd7 100644 --- a/src/contract_wrappers/ether_token_wrapper.ts +++ b/src/contract_wrappers/ether_token_wrapper.ts @@ -64,6 +64,9 @@ export class EtherTokenWrapper extends ContractWrapper { const wethContract = await this._getEtherTokenContractAsync(); return wethContract.address; } + private _invalidateContractInstance(): void { + delete this._etherTokenContractIfExists; + } private async _getEtherTokenContractAsync(): Promise { if (!_.isUndefined(this._etherTokenContractIfExists)) { return this._etherTokenContractIfExists; -- cgit v1.2.3