Skip to content

Commit

Permalink
Merge pull request #126 from Layr-Labs/jb/fix-specific-validator
Browse files Browse the repository at this point in the history
[bugfix] issue with `credentials` command
  • Loading branch information
jbrower95 authored Aug 12, 2024
2 parents 6a48990 + 9cf3219 commit 46cda8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ func main() {
core.PanicOnError("failed to reach ethereum clients", err)

var specificValidatorIndex *big.Int = nil
if specificValidator != math.MaxUint64 {
if specificValidator != math.MaxUint64 && specificValidator != 0 {
specificValidatorIndex = new(big.Int).SetUint64(specificValidator)
fmt.Printf("Using specific validator: %d", specificValidator)
}

if len(proofPath) > 0 {
Expand Down

0 comments on commit 46cda8c

Please sign in to comment.