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?
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments