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 c4be804 commit d06d6bc
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 @@ -374,7 +374,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) {
_, found, err := k.operatorsKeeper.GetOperator(ctx, serviceID)
_, found, err := k.operatorsKeeper.GetOperator(ctx, operatorID)
if err != nil {
return true, err
}
Expand Down

0 comments on commit d06d6bc

Please sign in to comment.