Skip to content

Commit

Permalink
fix(Profile): solve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Oct 24, 2024
1 parent aa36fee commit 47b12b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/ronin/profile/ProfileStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ abstract contract ProfileStorage is IProfile, HasContracts {
*/
function _setAggregator(CandidateProfile storage _profile, address aggregator) internal {
_profile.aggregator = aggregator;
_registry[uint256(uint160(address(aggregator)))] = true;

emit AggregatorChanged(_profile.id, aggregator);
}
Expand All @@ -136,6 +137,7 @@ abstract contract ProfileStorage is IProfile, HasContracts {
*/
function _setSequencer(CandidateProfile storage _profile, address sequencer) internal {
_profile.sequencer = sequencer;
_registry[uint256(uint160(address(sequencer)))] = true;

emit SequencerChanged(_profile.id, sequencer);
}
Expand Down

0 comments on commit 47b12b9

Please sign in to comment.