From 14d8a2d0fe66ec4a4612aaf9ebe493b1b8b09e42 Mon Sep 17 00:00:00 2001 From: Kane Wallmann Date: Fri, 13 Sep 2024 14:34:22 +1000 Subject: [PATCH] Fix incorrect use of msg.sender --- contracts/contract/network/RocketNetworkVoting.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contract/network/RocketNetworkVoting.sol b/contracts/contract/network/RocketNetworkVoting.sol index 3bf69e3b..4b24a7fa 100644 --- a/contracts/contract/network/RocketNetworkVoting.sol +++ b/contracts/contract/network/RocketNetworkVoting.sol @@ -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