Closed code423n4 closed 1 year ago
Mitigation: require(pendingGovernor != address(0), "pending governor address 0") require(msg.sender == pendingGovernor, "Caller must be pending governor");
require(pendingGovernor != address(0), "pending governor address 0")
require(msg.sender == pendingGovernor, "Caller must be pending governor");
similarly change could be made for the following: https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/upgrades/GraphProxy.sol#L142
<var> > 0
<var> != 0
Instance: https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/gateway/L1GraphTokenGateway.sol#L217
Mitigation:
require(pendingGovernor != address(0), "pending governor address 0")
require(msg.sender == pendingGovernor, "Caller must be pending governor");
similarly change could be made for the following: https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/upgrades/GraphProxy.sol#L142
<var> > 0
by<var> != 0
Instance: https://github.com/code-423n4/2022-10-thegraph/blob/main/contracts/gateway/L1GraphTokenGateway.sol#L217