Skip to content

Commit

Permalink
fix: use operator id
Browse files Browse the repository at this point in the history
  • Loading branch information
manu0466 committed Dec 12, 2024
1 parent 5a5e615 commit 34b6ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/restaking/keeper/invariants.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func AllowedOperatorsExistInvariant(k *Keeper) sdk.Invariant {
// Iterate over all the services joined by operators
var notFoundOperatorsIDs []uint32
err := k.IterateAllServicesAllowedOperators(ctx, func(serviceID uint32, operatorID uint32) (stop bool, err error) {
_, err = k.operatorsKeeper.GetOperator(ctx, serviceID)
_, err = k.operatorsKeeper.GetOperator(ctx, operatorID)
if err != nil {
if errors.Is(err, collections.ErrNotFound) {
notFoundOperatorsIDs = append(notFoundOperatorsIDs, operatorID)
Expand Down

0 comments on commit 34b6ab0

Please sign in to comment.