diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-17 19:16:47 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-17 19:16:47 +0800 |
commit | 6c2796b433257806efd294318e5f46c8a020184c (patch) | |
tree | e427088366e7e0776c221e183d00c626ea2509f8 /packages/fill-scenarios/src/fill_scenarios.ts | |
parent | 82ad5f789721312577735fc3ac7227c672903849 (diff) | |
download | dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar.gz dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar.bz2 dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar.lz dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar.xz dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.tar.zst dexon-sol-tools-6c2796b433257806efd294318e5f46c8a020184c.zip |
Rename decodeAssetData to decodeAssetDataOrThrow
Diffstat (limited to 'packages/fill-scenarios/src/fill_scenarios.ts')
-rw-r--r-- | packages/fill-scenarios/src/fill_scenarios.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/fill-scenarios/src/fill_scenarios.ts b/packages/fill-scenarios/src/fill_scenarios.ts index 4905dd596..9f5218274 100644 --- a/packages/fill-scenarios/src/fill_scenarios.ts +++ b/packages/fill-scenarios/src/fill_scenarios.ts @@ -150,7 +150,7 @@ export class FillScenarios { feeRecepientAddress: string, expirationTimeSeconds?: BigNumber, ): Promise<SignedOrder> { - const decodedMakerAssetData = assetProxyUtils.decodeAssetData(makerAssetData); + const decodedMakerAssetData = assetProxyUtils.decodeAssetDataOrThrow(makerAssetData); if (decodedMakerAssetData.assetProxyId === AssetProxyId.ERC20) { await this._increaseERC20BalanceAndAllowanceAsync( decodedMakerAssetData.tokenAddress, @@ -167,7 +167,7 @@ export class FillScenarios { (decodedMakerAssetData as ERC721AssetData).tokenId, ); } - const decodedTakerAssetData = assetProxyUtils.decodeAssetData(takerAssetData); + const decodedTakerAssetData = assetProxyUtils.decodeAssetDataOrThrow(takerAssetData); if (decodedTakerAssetData.assetProxyId === AssetProxyId.ERC20) { const takerTokenAddress = decodedTakerAssetData.tokenAddress; await this._increaseERC20BalanceAndAllowanceAsync(takerTokenAddress, takerAddress, takerFillableAmount); |