diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 02:48:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 02:48:41 +0800 |
commit | a45f6ff4af2f79911af6c64dff8b684651c05c72 (patch) | |
tree | aa9a396389109b5b0b40f49a7bdb5f1b5f35a47d /src/contract_wrappers | |
parent | 74e991db94d777ecb4a566f03561fdabe8d55007 (diff) | |
download | dexon-0x-contracts-a45f6ff4af2f79911af6c64dff8b684651c05c72.tar.gz dexon-0x-contracts-a45f6ff4af2f79911af6c64dff8b684651c05c72.tar.zst dexon-0x-contracts-a45f6ff4af2f79911af6c64dff8b684651c05c72.zip |
Fix the bug when didn't invalidate etherToken contract instance
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/ether_token_wrapper.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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<EtherTokenContract> { if (!_.isUndefined(this._etherTokenContractIfExists)) { return this._etherTokenContractIfExists; |