From a3e7b6658df2b5a64658ac97cc77a63d3f92b360 Mon Sep 17 00:00:00 2001 From: anlerkan Date: Mon, 3 Jun 2024 14:52:22 +0300 Subject: [PATCH 1/2] fix: change selectable asset parameter value --- src/WidgetController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WidgetController.ts b/src/WidgetController.ts index 08a91d1..572f358 100644 --- a/src/WidgetController.ts +++ b/src/WidgetController.ts @@ -121,7 +121,7 @@ export class WidgetController { if (selectableAssets) { searchParams[SwapWidgetSearchParamKey.SELECTABLE_ASSETS] = - JSON.stringify(selectableAssets); + selectableAssets.join(","); } return `${SWAP_WIDGET_BASE_URL}?${new URLSearchParams(searchParams)}`; From 17f3a8f09cf146116cf4f4608702121b120ca6b0 Mon Sep 17 00:00:00 2001 From: anlerkan Date: Mon, 3 Jun 2024 14:53:26 +0300 Subject: [PATCH 2/2] bump up minor version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b0664f3..68fe828 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tinymanorg/tinyman-swap-widget-sdk", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@tinymanorg/tinyman-swap-widget-sdk", - "version": "1.0.7", + "version": "1.0.8", "license": "ISC", "dependencies": { "@tinymanorg/tinyman-js-sdk": "^3.0.0", diff --git a/package.json b/package.json index 17c3d56..072b38e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tinymanorg/tinyman-swap-widget-sdk", - "version": "1.0.7", + "version": "1.0.8", "description": "Easily integrate Tinyman Swap Widget into your dApp with JavaScript SDK.", "main": "dist/index.js", "typings": "dist/index.d.ts",