Skip to content

Commit

Permalink
Merge pull request #42 from terra-project/feature/fix-regex
Browse files Browse the repository at this point in the history
Update regex for broken account info
  • Loading branch information
etienne-napoleone authored Jul 14, 2020
2 parents 44aeb4a + 87328be commit cb354d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ func loadAccountInfo() {
return
}

sequence, _ = strconv.ParseUint(parseRegexp(`"sequence":"(\d+)"`, string(body)), 10, 64)
accountNumber, _ = strconv.ParseUint(parseRegexp(`"account_number":"(\d+)"`, string(body)), 10, 64)
sequence, _ = strconv.ParseUint(parseRegexp(`"sequence":"?(\d+)"?`, string(body)), 10, 64)
accountNumber, _ = strconv.ParseUint(parseRegexp(`"account_number":"?(\d+)"?`, string(body)), 10, 64)
return
}

Expand Down

0 comments on commit cb354d1

Please sign in to comment.