Remix always constructing 0 withdraw transaction
Using remix I have deployed the following code
“` pragma solidity >=0.7.0 <0.9.0;
contract Faucet {
// Give out ether to anyone who asks function withdraw(uint withdraw_amount) public {
// Limit withdrawal amount require(withdraw_amount <= 100000000000000000);
// Send the amount to the address that requested it payable(msg.sender).transfer(withdraw_amount); }
// Accept any incoming amount receive () external payable {}
}
“`
When I construct a transaction to widthraw via remix UI, it always constructs a transaction that widthraws 0, no matter how much I tell it to widthraw.
This can be seen in this screenshot https://imgur.com/a/eWDiq8p
Any idea why or what I am doing wrong?
submitted by /u/io_geekabyte
[link] [comments]