Skip to content
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

Fix/audit results #68

Merged
merged 11 commits into from
Sep 5, 2024
Merged

Fix/audit results #68

merged 11 commits into from
Sep 5, 2024

Conversation

unknownunknown1
Copy link
Contributor

No description provided.

/// @dev Instance of the ProofOfHumanity contract
IProofOfHumanity public proofOfHumanity;

string public name = "Human Vote";

Check warning

Code scanning / Slither

State variables that could be declared constant Warning

ProofOfHumanityProxyV2.name should be constant
IProofOfHumanity public proofOfHumanity;

string public name = "Human Vote";
string public symbol = "VOTE";

Check warning

Code scanning / Slither

State variables that could be declared constant Warning

ProofOfHumanityProxyV2.symbol should be constant

string public name = "Human Vote";
string public symbol = "VOTE";
uint8 public decimals = 0;

Check warning

Code scanning / Slither

State variables that could be declared constant Warning

ProofOfHumanityProxyV2.decimals should be constant
/** @dev Changes the address of the the related ProofOfHumanity contract.
* @param _proofOfHumanity The address of the new contract.
*/
function changePoH(IProofOfHumanity _proofOfHumanity) external onlyGovernor {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

Comment on lines +60 to +63
function changeGovernor(address _governor) external onlyGovernor {
//require(msg.sender == governor, "The caller must be the governor.");
governor = _governor;
}

Check notice

Code scanning / Slither

Missing events access control Low

/** @dev Changes the address of the the governor.
* @param _governor The address of the new governor.
*/
function changeGovernor(address _governor) external onlyGovernor {

Check notice

Code scanning / Slither

Missing zero address validation Low

/** @dev Changes the address of the the governor.
* @param _governor The address of the new governor.
*/
function changeGovernor(address _governor) external onlyGovernor {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

* @param _account The account address.
* @return Whether the account is registered or not.
*/
function isHuman(address _account) public view returns (bool) {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

Parameter ProofOfHumanityProxyV2.isHuman(address)._account is not in mixedCase
* @param _account The account address.
* @return The balance of the account.
*/
function balanceOf(address _account) external view returns (uint256) {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

alcercu
alcercu previously approved these changes Sep 5, 2024
Copy link
Member

@alcercu alcercu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@unknownunknown1
Copy link
Contributor Author

Note that the issue fixed in 753ffd5 was found internally during testing

@clesaege clesaege merged commit 1050be8 into master Sep 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants