MultiversX Tracker is Live!

Remix always constructing 0 withdraw transaction

Etherum Reddit

More / Etherum Reddit 164 Views

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]
Get BONUS $200 for FREE!

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