aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 20:30:10 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 22:52:54 +0800
commitbcc588efe726751c100f020a219b79d8f2a31f03 (patch)
treec34f1da11e6833efcde81734bc5f43b17e267d57 /packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts
parentf7b3fc58bc24decc37f7c64b15573a5ec90e1ceb (diff)
downloaddexon-0x-contracts-bcc588efe726751c100f020a219b79d8f2a31f03.tar.gz
dexon-0x-contracts-bcc588efe726751c100f020a219b79d8f2a31f03.tar.zst
dexon-0x-contracts-bcc588efe726751c100f020a219b79d8f2a31f03.zip
Add HACK comments
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts
index d1ec5b08a..839248754 100644
--- a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts
@@ -49,6 +49,8 @@ export class ERC20ProxyWrapper extends ContractWrapper {
const contractAddress = this._getContractAddress(artifacts.ERC20Proxy, this._contractAddressIfExists);
return contractAddress;
}
+ // HACK: We don't want this method to be visible to the other units within that package but not to the end user.
+ // TS doesn't give that possibility and therefore we make it private and access it over an any cast. Because of that tslint sees it as unused.
// tslint:disable-next-line:no-unused-variable
private _invalidateContractInstance(): void {
delete this._erc20ProxyContractIfExists;