diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-27 01:52:12 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-27 01:52:12 +0800 |
commit | e1306f55ed65278b18d05344cca1980af490e910 (patch) | |
tree | ef0f47f7f5425103d50ddde9ed4083b04216ca66 | |
parent | b737313d16bfc331e7dcc5b733c7503f32b0f01c (diff) | |
download | dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar.gz dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar.bz2 dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar.lz dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar.xz dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.tar.zst dexon-0x-contracts-e1306f55ed65278b18d05344cca1980af490e910.zip |
Add note about tslint false positive
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts | 2 | ||||
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts | 2 |
2 files changed, 4 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 12433c2d7..45460bd6d 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts @@ -34,6 +34,8 @@ export class ERC20ProxyWrapper extends ContractWrapper { */ public async getProxyIdAsync(): Promise<AssetProxyId> { const ERC20ProxyContractInstance = this._getERC20ProxyContract(); + // Note(albrow): Below is a TSLint false positive. Code won't compile if + // you remove the type assertion. /* tslint:disable-next-line:no-unnecessary-type-assertion */ const proxyId = (await ERC20ProxyContractInstance.getProxyId.callAsync()) as AssetProxyId; return proxyId; diff --git a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts index 6d08619a3..12758e191 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts @@ -34,6 +34,8 @@ export class ERC721ProxyWrapper extends ContractWrapper { */ public async getProxyIdAsync(): Promise<AssetProxyId> { const ERC721ProxyContractInstance = await this._getERC721ProxyContract(); + // Note(albrow): Below is a TSLint false positive. Code won't compile if + // you remove the type assertion. /* tslint:disable-next-line:no-unnecessary-type-assertion */ const proxyId = (await ERC721ProxyContractInstance.getProxyId.callAsync()) as AssetProxyId; return proxyId; |