Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Aug 20, 2024
1 parent 6d5873f commit a539128
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli/commands/staleBalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type TFixStaleBalanceArgs struct {
BeaconNode string
Sender string
EigenpodAddress string
SlashedValidatorIndex int64
SlashedValidatorIndex uint64
Verbose bool
CheckpointBatchSize uint64
NoPrompt bool
Expand All @@ -39,7 +39,7 @@ func FixStaleBalance(args TFixStaleBalanceArgs) error {
eth, beacon, chainId, err := core.GetClients(ctx, args.EthNode, args.BeaconNode, args.Verbose)
core.PanicOnError("failed to get clients", err)

validator, err := beacon.GetValidator(ctx, uint64(args.SlashedValidatorIndex))
validator, err := beacon.GetValidator(ctx, args.SlashedValidatorIndex)
core.PanicOnError("failed to fetch validator state", err)

if !validator.Validator.Slashed {
Expand Down Expand Up @@ -75,7 +75,7 @@ func FixStaleBalance(args TFixStaleBalanceArgs) error {
}
}

proof, oracleBeaconTimesetamp, err := core.GenerateValidatorProof(ctx, args.EigenpodAddress, eth, chainId, beacon, new(big.Int).SetUint64(uint64(args.SlashedValidatorIndex)), args.Verbose)
proof, oracleBeaconTimesetamp, err := core.GenerateValidatorProof(ctx, args.EigenpodAddress, eth, chainId, beacon, new(big.Int).SetUint64(args.SlashedValidatorIndex), args.Verbose)
core.PanicOnError("failed to generate credential proof for slashed validator", err)

if !args.NoPrompt {
Expand Down
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
BeaconNode: beacon,
Sender: sender,
EigenpodAddress: eigenpodAddress,
SlashedValidatorIndex: int64(slashedValidatorIndex),
SlashedValidatorIndex: slashedValidatorIndex,
Verbose: verbose,
CheckpointBatchSize: batchSize,
NoPrompt: noPrompt,
Expand Down

0 comments on commit a539128

Please sign in to comment.