Skip to content

Commit ddbcc86

Browse files
committed
fix: emit oracle set event on init
1 parent a67ad20 commit ddbcc86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/contracts/contracts/rewards/SubgraphAvailabilityManager.sol

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ contract SubgraphAvailabilityManager is Governed {
104104

105105
// Oracles should not be address zero
106106
for (uint256 i = 0; i < _oracles.length; i++) {
107-
require(_oracles[i] != address(0), "SAM: oracle cannot be address zero");
107+
address oracle = _oracles[i];
108+
require(oracle != address(0), "SAM: oracle cannot be address zero");
109+
oracles[i] = oracle;
110+
emit OracleSet(i, oracle);
108111
}
109112

110113
Governed._initialize(_governor);
111114
rewardsManager = IRewardsManager(_rewardsManager);
112115

113116
executionThreshold = _executionThreshold;
114117
voteTimeLimit = _voteTimeLimit;
115-
oracles = _oracles;
116118
}
117119

118120
// -- Functions --

0 commit comments

Comments
 (0)