Skip to content

Commit eda447c

Browse files
authored
fix: wallet_watchAssets decimals field type
1 parent 390ff3b commit eda447c

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
@@ -1850,7 +1850,7 @@ const initializeFormElements = () => {
18501850
options: {
18511851
address: erc20Address,
18521852
symbol: tokenSymbol,
1853-
decimals: decimalUnitsInput.value,
1853+
decimals: parseInt(decimalUnitsInput.value, 10),
18541854
image: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
18551855
},
18561856
},

0 commit comments

Comments
 (0)