Skip to content

Commit

Permalink
chore: update equality check to more broader
Browse files Browse the repository at this point in the history
  • Loading branch information
blockgroot committed Oct 17, 2024
1 parent a39e5f4 commit 11c68d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/StaderOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ contract StaderOracle is IStaderOracle, AccessControlUpgradeable, PausableUpgrad
if (block.number < lastTrustedNodeCountChangeBlock + trustedNodeChangeCoolingPeriod) {
revert CooldownNotComplete();
}
if (trustedNodesCount == MIN_TRUSTED_NODES) {
if (trustedNodesCount <= MIN_TRUSTED_NODES) {
revert InsufficientTrustedNodes();
}
lastTrustedNodeCountChangeBlock = block.number;
Expand Down

0 comments on commit 11c68d0

Please sign in to comment.