-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in solidity code #14527
Comments
Can someone assign me this issue please? |
this is ethereum.org repo how is this related to our site? or Should this be in solidity? should this be https://github.com/ethereum/solidity ? |
oh it was a code display in public/content/developers/docs/smart-contracts/security/index.md |
the code there was incorrect so I corrected it. |
ah ok, ty for clarification |
Original solidity code:
pragma solidity ^0.7.0;
contract MutexPattern {
bool locked = false;
mapping(address => uint256) public balances;
}
Error in the above code:
bool (success, ) = msg.sender.call{value: _amount}("");
Changed to:
(bool success, ) = msg.sender.call{value: _amount}("");
The text was updated successfully, but these errors were encountered: