Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Dec 18, 2024
1 parent 43d1f84 commit 59f7d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/core/findStalePods.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func executionWithdrawalAddress(withdrawalCredentials []byte) *string {
return &addr
}

func validEigenpodsOnly(candidateAddresses []common.Address, mc *multicall.MulticallClient, chainId uint64, eth *ethclient.Client) ([]common.Address, error) {
func validEigenpodsOnly(candidateAddresses []common.Address, mc *multicall.MulticallClient, chainId uint64) ([]common.Address, error) {
EigenPodAbi, err := abi.JSON(strings.NewReader(EigenPod.EigenPodABI))
if err != nil {
return nil, fmt.Errorf("failed to load eigenpod abi: %s", err)
Expand Down Expand Up @@ -255,7 +255,7 @@ func FindStaleEigenpods(ctx context.Context, eth *ethclient.Client, nodeUrl stri

// fmt.Printf("Checking %d slashed withdrawal addresses for eigenpod status\n", len(allSlashedWithdrawalAddresses))

slashedEigenpods, err := validEigenpodsOnly(allSlashedWithdrawalAddresses, mc, chainId.Uint64(), eth)
slashedEigenpods, err := validEigenpodsOnly(allSlashedWithdrawalAddresses, mc, chainId.Uint64())

if len(slashedEigenpods) == 0 {
log.Println("No eigenpods were slashed.")
Expand Down

0 comments on commit 59f7d66

Please sign in to comment.