aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-20 19:55:28 +0800
committerFabio Berger <me@fabioberger.com>2018-06-20 19:55:28 +0800
commit0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598 (patch)
treeb06d90deb8ea8d17386a86bade074803c8b4e72a /packages
parent9bc481ff62cf9e4a60794000b8cab840405d63fa (diff)
downloaddexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.gz
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.bz2
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.lz
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.xz
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.tar.zst
dexon-sol-tools-0bbdbc9e63fbd73158c1ffd76eb3f3e4d0660598.zip
Rename for clarity
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/src/utils/asset_wrapper.ts16
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: {