aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/contract_wrappers
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-27 01:52:12 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-27 01:52:12 +0800
commite1306f55ed65278b18d05344cca1980af490e910 (patch)
treeef0f47f7f5425103d50ddde9ed4083b04216ca66 /packages/contract-wrappers/src/contract_wrappers
parentb737313d16bfc331e7dcc5b733c7503f32b0f01c (diff)
downloaddexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar.gz
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar.bz2
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar.lz
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar.xz
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.tar.zst
dexon-sol-tools-e1306f55ed65278b18d05344cca1980af490e910.zip
Add note about tslint false positive
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts2
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts2
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;