From 881f414913c9ef184fb2c0ba3b36bc3d56d722e7 Mon Sep 17 00:00:00 2001 From: BeilunYang <786220806@qq.com> Date: Tue, 30 Apr 2024 21:11:03 +0800 Subject: [PATCH] fix: wallet_watchAssets decimals field type --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 896c4622..4634aa77 100644 --- a/src/index.js +++ b/src/index.js @@ -1806,7 +1806,7 @@ const initializeFormElements = () => { options: { address: erc20Address, symbol: tokenSymbol, - decimals: decimalUnitsInput.value, + decimals: parseInt(decimalUnitsInput.value, 10), image: 'https://metamask.github.io/test-dapp/metamask-fox.svg', }, },