Skip to content

Commit

Permalink
check != to null address
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Dec 17, 2024
1 parent 82fba93 commit d692923
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/core/findStalePods.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ func validEigenpodsOnly(candidateAddresses []common.Address, mc *multicall.Multi
return nil, lastError
}

authoritativeOwnerToPod, err := multicall.DoManyAllowFailures(mc, authoritativeOwnerToPodCalls...)
authoritativeOwnerToPod, err := multicall.DoMany(mc, authoritativeOwnerToPodCalls...)
nullAddress := common.BigToAddress(big.NewInt(0))

////// step 3: the valid eigenrestpods are the ones where authoritativeOwnerToPod[i] == candidateAddresses[i].
return utils.Map(utils.FilterI(podOwnerPairs, func(res PodOwnerResult, i uint64) bool {
return (res.Query.Cmp(*(*authoritativeOwnerToPod)[i].Value) == 0)
return (res.Query.Cmp(*(*authoritativeOwnerToPod)[i]) == 0) && (*authoritativeOwnerToPod)[i].Cmp(nullAddress) != 0
}), func(v PodOwnerResult, i uint64) common.Address {
return v.Query
}), nil
Expand Down

0 comments on commit d692923

Please sign in to comment.