You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the DaiFaucet contract, it checks to see if the withdraw_amount parameter is <= 0.1 ether, when it should just be 0.1.
So instead of: require(withdraw_amount <= 0.1 ether);
It should be:
require(withdraw_amount <= 0.1);
Edit: It's not that simple to work with decimals in Solidity, so I'm not entirely sure what the solution would be. We can still limit it in Ether, but it would have to be much less than 0.1 eth. I will be using 0.0005 eth for mine.
The text was updated successfully, but these errors were encountered:
In the
DaiFaucet
contract, it checks to see if thewithdraw_amount
parameter is <= 0.1 ether, when it should just be 0.1.So instead of:
require(withdraw_amount <= 0.1 ether);
It should be:
require(withdraw_amount <= 0.1);
Edit: It's not that simple to work with decimals in Solidity, so I'm not entirely sure what the solution would be. We can still limit it in Ether, but it would have to be much less than 0.1 eth. I will be using 0.0005 eth for mine.
The text was updated successfully, but these errors were encountered: