-1

I am trying to make payable function that allows to send amount less than 1 ether. And it works in Remix where I can choose Wei/Gwei/Ether but when I verify my contract on Etherscan it allows me to enter a value only in ether (picture). Is it possible to change the minimum unit to wei?

`    function Stake() public payable {
         _mint(msg.sender, msg.value);     
     }`

screenshot from etherscan

Tried to use new uint variable but I need only one

Michael
  • 1
  • 1

1 Answers1

1

You can input decimal numbers in the Etherscan UI - for example 0.01.

Petr Hejda
  • 40,554
  • 8
  • 72
  • 100