The current calculation of the mint amount always uses toWei function which multiplies entered amount by 18.
Not all LSP7 tokens have 18 decimals. This breaks minting.
Here is an attempt to mint 0x5f4030c46497ecf4340c7c9bca2412fa10536f08 which has 13 decimals.
The resulting value is not 1 but 1000000 tokens to be minted as 1 was converted using toWei and it produced an extra large value:
https://app.clickup.com/t/86by5jgxz
The current calculation of the mint amount always uses
toWei
function which multiplies entered amount by 18. Not all LSP7 tokens have 18 decimals. This breaks minting.Here is an attempt to mint 0x5f4030c46497ecf4340c7c9bca2412fa10536f08 which has 13 decimals. The resulting value is not 1 but 1000000 tokens to be minted as 1 was converted using
toWei
and it produced an extra large value:After the fix with the same values: