diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-18 21:37:34 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-18 21:38:10 +0800 |
commit | c71781d9abf7f2654a51dbef95bd18200ea2bde1 (patch) | |
tree | bcaf7b858ba1d22d6f8c1afe0ff21aec28467598 /packages/order-watcher/src/fetchers | |
parent | dad557164ea4ccc012243d43df013078a7c37eb6 (diff) | |
download | dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar.gz dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar.bz2 dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar.lz dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar.xz dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.tar.zst dexon-sol-tools-c71781d9abf7f2654a51dbef95bd18200ea2bde1.zip |
Merge
Diffstat (limited to 'packages/order-watcher/src/fetchers')
-rw-r--r-- | packages/order-watcher/src/fetchers/asset_balance_and_proxy_allowance_fetcher.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-watcher/src/fetchers/asset_balance_and_proxy_allowance_fetcher.ts b/packages/order-watcher/src/fetchers/asset_balance_and_proxy_allowance_fetcher.ts index b1c013928..bfa33c8b9 100644 --- a/packages/order-watcher/src/fetchers/asset_balance_and_proxy_allowance_fetcher.ts +++ b/packages/order-watcher/src/fetchers/asset_balance_and_proxy_allowance_fetcher.ts @@ -14,7 +14,7 @@ export class AssetBalanceAndProxyAllowanceFetcher implements AbstractBalanceAndP this._stateLayer = stateLayer; } public async getBalanceAsync(assetData: string, userAddress: string): Promise<BigNumber> { - const decodedAssetData = assetProxyUtils.decodeAssetData(assetData); + const decodedAssetData = assetProxyUtils.decodeAssetDataOrThrow(assetData); if (decodedAssetData.assetProxyId === AssetProxyId.ERC20) { const decodedERC20AssetData = decodedAssetData as ERC20AssetData; const balance = await this._erc20Token.getBalanceAsync(decodedERC20AssetData.tokenAddress, userAddress, { @@ -35,7 +35,7 @@ export class AssetBalanceAndProxyAllowanceFetcher implements AbstractBalanceAndP } } public async getProxyAllowanceAsync(assetData: string, userAddress: string): Promise<BigNumber> { - const decodedAssetData = assetProxyUtils.decodeAssetData(assetData); + const decodedAssetData = assetProxyUtils.decodeAssetDataOrThrow(assetData); if (decodedAssetData.assetProxyId === AssetProxyId.ERC20) { const decodedERC20AssetData = decodedAssetData as ERC20AssetData; const proxyAllowance = await this._erc20Token.getProxyAllowanceAsync( |