diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-20 19:55:28 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-20 19:55:28 +0800 |
commit | 0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598 (patch) | |
tree | b06d90deb8ea8d17386a86bade074803c8b4e72a /packages/contracts/src | |
parent | 9bc481ff62cf9e4a60794000b8cab840405d63fa (diff) | |
download | dexon-0x-contracts-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.gz dexon-0x-contracts-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.zst dexon-0x-contracts-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.zip |
Rename for clarity
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/utils/asset_wrapper.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/contracts/src/utils/asset_wrapper.ts b/packages/contracts/src/utils/asset_wrapper.ts index 2eb54f290..f86c0bc23 100644 --- a/packages/contracts/src/utils/asset_wrapper.ts +++ b/packages/contracts/src/utils/asset_wrapper.ts @@ -29,8 +29,8 @@ export class AssetWrapper { const proxyId = assetProxyUtils.decodeAssetDataId(assetData); switch (proxyId) { case constants.ERC20_PROXY_ID: { - const assetWrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; - const balance = await assetWrapper.getBalanceAsync(userAddress, assetData); + const erc20Wrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; + const balance = await erc20Wrapper.getBalanceAsync(userAddress, assetData); return balance; } case constants.ERC721_PROXY_ID: { @@ -52,8 +52,8 @@ export class AssetWrapper { const proxyId = assetProxyUtils.decodeAssetDataId(assetData); switch (proxyId) { case constants.ERC20_PROXY_ID: { - const assetWrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; - await assetWrapper.setBalanceAsync(userAddress, assetData, desiredBalance); + const erc20Wrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; + await erc20Wrapper.setBalanceAsync(userAddress, assetData, desiredBalance); return; } case constants.ERC721_PROXY_ID: { @@ -98,8 +98,8 @@ export class AssetWrapper { const proxyId = assetProxyUtils.decodeAssetDataId(assetData); switch (proxyId) { case constants.ERC20_PROXY_ID: { - const assetWrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; - const allowance = await assetWrapper.getProxyAllowanceAsync(userAddress, assetData); + const erc20Wrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; + const allowance = await erc20Wrapper.getProxyAllowanceAsync(userAddress, assetData); return allowance; } case constants.ERC721_PROXY_ID: { @@ -129,8 +129,8 @@ export class AssetWrapper { const proxyId = assetProxyUtils.decodeAssetDataId(assetData); switch (proxyId) { case constants.ERC20_PROXY_ID: { - const assetWrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; - await assetWrapper.setAllowanceAsync(userAddress, assetData, desiredAllowance); + const erc20Wrapper = this._proxyIdToAssetWrappers[proxyId] as ERC20Wrapper; + await erc20Wrapper.setAllowanceAsync(userAddress, assetData, desiredAllowance); return; } case constants.ERC721_PROXY_ID: { |