小弟刚学习solidity,写个发水龙头的币的代码
pragma solidity ^0.8.18; contract Faucet { function withdraw(uint amount) public { require(amount < 1000000000000000000); msg.sender.transfer(amount); } }
报以下错误: pragma solidity ^0.8.18; contract Faucet { function withdraw(uint amount) public { require(amount < 1000000000000000000); msg.sender.transfer(amount); } } 请问大神们怎么解决