aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/public
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-02 04:10:51 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-02 04:10:51 +0800
commitb55ba3a31823699fa2460fad6fd22b913c38c946 (patch)
treea3ce34b73187518f106894f9eeb35d6a56f065cf /packages/instant/public
parent3f918622bcce21ba104e0f13e71247796345ab0f (diff)
downloaddexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.gz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.bz2
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.lz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.xz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.zst
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.zip
feat: add states to the erc20 input for no assets or only 1 asset
Diffstat (limited to 'packages/instant/public')
-rw-r--r--packages/instant/public/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html
index 74975678a..1c08aa5a1 100644
--- a/packages/instant/public/index.html
+++ b/packages/instant/public/index.html
@@ -59,13 +59,13 @@
assetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498',
}
const orderSourceOverride = queryParams.getQueryParamValue('orderSource');
+ const availableAssetDatasString = queryParams.getQueryParamValue('availableAssetDatas');
const renderOptionsOverrides = {
orderSource: orderSourceOverride === 'provided' ? [providedOrder] : orderSourceOverride,
- assetData: queryParams.getQueryParamValue('assetData'),
networkId: +queryParams.getQueryParamValue('networkId') || undefined,
defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount') || undefined,
- availableAssetIdentifiers: JSON.parse(queryParams.getQueryParamValue('availableAssetIdentifiers') || '[]'),
- defaultSelectedAssetIdentifier: queryParams.getQueryParamValue('defaultSelectedAssetIdentifier'),
+ availableAssetDatas: availableAssetDatasString ? JSON.parse(availableAssetDatasString) : undefined,
+ defaultSelectedAssetData: queryParams.getQueryParamValue('defaultSelectedAssetData'),
}
const renderOptions = Object.assign({}, renderOptionsDefaults, removeUndefined(renderOptionsOverrides));
zeroExInstant.render(renderOptions);