Does ERC-20 total supply takes in ether or wei?
for eg: say I want to mint 1 token for my token A supply. should it be
_mint(msg.sender, 1)
or
_mint(msg.sender, 1 ether)
Does ERC-20 total supply takes in ether or wei?
for eg: say I want to mint 1 token for my token A supply. should it be
_mint(msg.sender, 1)
or
_mint(msg.sender, 1 ether)
if you want 1 token, use this format as long as your decimals are 18,
but it is recommended to use this format
_mint (msg.sender, 1 * 10 ** decimals ());