Skip to content

Commit

Permalink
Fix incorrect use of msg.sender
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewallmann committed Sep 13, 2024
1 parent 6f07f2a commit 14d8a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/contract/network/RocketNetworkVoting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contract RocketNetworkVoting is RocketBase, RocketNetworkVotingInterface {
/// @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", msg.sender))), "Already registered");
require (!getBool(keccak256(abi.encodePacked("node.voting.enabled", _nodeAddress))), "Already registered");
setBool(keccak256(abi.encodePacked("node.voting.enabled", _nodeAddress)), true);

// Get contracts
Expand Down

0 comments on commit 14d8a2d

Please sign in to comment.