Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
default startNonce=0
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnguyennguyen committed Nov 27, 2019
1 parent 46ed5ea commit 7b092e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified bot
Binary file not shown.
5 changes: 4 additions & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ func main() {
if err != nil {
panic("Error loading .env file")
}
startNonce, _ := strconv.Atoi(os.Args[1])
startNonce := int(0)
if len(os.Args) > 1 {
startNonce, _ = strconv.Atoi(os.Args[1])
}
breakTime, _ := strconv.Atoi(os.Getenv("BREAK_TIME"))
for {
sendOrder(new(big.Int).SetUint64(uint64(startNonce)))
Expand Down

0 comments on commit 7b092e7

Please sign in to comment.