Skip to content

Commit

Permalink
Fix comment and correct revert message
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewallmann committed Sep 13, 2024
1 parent 14d8a2d commit bfd30a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/contract/network/RocketNetworkVoting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ contract RocketNetworkVoting is RocketBase, RocketNetworkVotingInterface {
/// @param _nodeAddress The address of the node to initialise
/// @param _delegate The address to delegate the node's voting power to
function _initialiseVoting(address _nodeAddress, address _delegate) private {
// Check if already registered
require (!getBool(keccak256(abi.encodePacked("node.voting.enabled", _nodeAddress))), "Already registered");
// Check if already initialised
require (!getBool(keccak256(abi.encodePacked("node.voting.enabled", _nodeAddress))), "Voting power already initialised");
setBool(keccak256(abi.encodePacked("node.voting.enabled", _nodeAddress)), true);

// Get contracts
Expand Down

0 comments on commit bfd30a3

Please sign in to comment.