Skip to content

Commit 881f414

Browse files
committed
fix: wallet_watchAssets decimals field type
1 parent 4591f29 commit 881f414

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ const initializeFormElements = () => {
18061806
options: {
18071807
address: erc20Address,
18081808
symbol: tokenSymbol,
1809-
decimals: decimalUnitsInput.value,
1809+
decimals: parseInt(decimalUnitsInput.value, 10),
18101810
image: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
18111811
},
18121812
},

0 commit comments

Comments
 (0)