Browse Source

Abort when account index is too high

pull/11/head
codesoap 11 months ago
parent
commit
14830b5e04
  1. 2
      cmd/atto-safesign/main.go
  2. 2
      cmd/atto/main.go

2
cmd/atto-safesign/main.go

@ -63,7 +63,7 @@ func init() { @@ -63,7 +63,7 @@ func init() {
fmt.Println("1.2.0")
os.Exit(0)
}
if flag.NArg() < 2 {
if accountIndexFlag >= 1<<32 || flag.NArg() < 2 {
flag.Usage()
os.Exit(1)
}

2
cmd/atto/main.go

@ -54,7 +54,7 @@ func init() { @@ -54,7 +54,7 @@ func init() {
fmt.Println("1.4.0")
os.Exit(0)
}
if flag.NArg() < 1 {
if accountIndexFlag >= 1<<32 || flag.NArg() < 1 {
flag.Usage()
os.Exit(1)
}

Loading…
Cancel
Save