@@ -43,11 +43,11 @@ contract SubgraphAvailabilityManager is Governed {
43
43
44
44
/// @notice Mapping of current nonce to subgraph deployment ID to oracle index to timestamp of last deny vote
45
45
/// currentNonce => subgraphDeploymentId => oracleIndex => timestamp
46
- mapping (uint256 => mapping (bytes32 => mapping ( uint256 => uint256 ) )) public lastDenyVote;
46
+ mapping (uint256 => mapping (bytes32 => uint256 [NUM_ORACLES] )) public lastDenyVote;
47
47
48
48
/// @notice Mapping of current nonce to subgraph deployment ID to oracle index to timestamp of last allow vote
49
49
/// currentNonce => subgraphDeploymentId => oracleIndex => timestamp
50
- mapping (uint256 => mapping (bytes32 => mapping ( uint256 => uint256 ) )) public lastAllowVote;
50
+ mapping (uint256 => mapping (bytes32 => uint256 [NUM_ORACLES] )) public lastAllowVote;
51
51
52
52
// -- Events --
53
53
@@ -195,7 +195,7 @@ contract SubgraphAvailabilityManager is Governed {
195
195
uint256 timestamp = block .timestamp ;
196
196
197
197
// corresponding votes based on _deny for a subgraph deployment
198
- mapping ( uint256 => uint256 ) storage lastVoteForSubgraph = _deny
198
+ uint256 [NUM_ORACLES] storage lastVoteForSubgraph = _deny
199
199
? lastDenyVote[currentNonce][_subgraphDeploymentID]
200
200
: lastAllowVote[currentNonce][_subgraphDeploymentID];
201
201
lastVoteForSubgraph[_oracleIndex] = timestamp;
@@ -222,7 +222,7 @@ contract SubgraphAvailabilityManager is Governed {
222
222
uint256 voteTimeValidity = block .timestamp - voteTimeLimit;
223
223
224
224
// corresponding votes based on _deny for a subgraph deployment
225
- mapping ( uint256 => uint256 ) storage lastVoteForSubgraph = _deny
225
+ uint256 [NUM_ORACLES] storage lastVoteForSubgraph = _deny
226
226
? lastDenyVote[currentNonce][_subgraphDeploymentID]
227
227
: lastAllowVote[currentNonce][_subgraphDeploymentID];
228
228
0 commit comments