We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pragma soliditypp ^0.8.0; contract TestBool{ mapping(address => bool) public adminMap; function setAdmin(address _addr, bool _state) external { adminMap[_addr] = _state; } }
setAdmin(_addr, 0) won’t work.
The text was updated successfully, but these errors were encountered:
It passes a string literal 'false' rather than a boolean literal false as the parameter to the ABI encoder.
'false'
false
Convert the literal from string to boolean if the type of the parameter is bool.
bool
Sorry, something went wrong.
fix: fail to set bool to false. close #29
893b597
charles-liu
No branches or pull requests
setAdmin(_addr, 0) won’t work.
The text was updated successfully, but these errors were encountered: