Skip to content

Commit

Permalink
Fix spell
Browse files Browse the repository at this point in the history
  • Loading branch information
thaarok committed Nov 9, 2024
1 parent ac50255 commit 235ebd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ contract SFC is Initializable, Ownable, Version {
error TransferFailed();

// stake changes subscriber
error StateSubscriberFailed();
error StakeSubscriberFailed();

// staking
error InsufficientSelfStake();
Expand Down Expand Up @@ -964,7 +964,7 @@ contract SFC is Initializable, Ownable, Version {
}

/// Notify stake subscriber about staking changes.
/// Used to recount votes for a delegator and a validator in governance contract.
/// Used to recount votes from delegators in the governance contract.
function _notifyStakeSubscriber(address delegator, address validatorAuth, bool strict) internal {
if (stakeSubscriberAddress != address(0)) {
// Don't allow announceStakeChange to use up all the gas
Expand All @@ -974,7 +974,7 @@ contract SFC is Initializable, Ownable, Version {
);
// Don't revert if announceStakeChange failed unless strict mode enabled
if (!success && strict) {
revert StateSubscriberFailed();
revert StakeSubscriberFailed();
}
}
}
Expand Down

0 comments on commit 235ebd9

Please sign in to comment.