mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 22:47:24 +00:00
get_account fix
This commit is contained in:
@@ -19,6 +19,9 @@ func get_account() {
|
||||
Exit(Fmt("Address was not hex: %v", addrHex))
|
||||
}
|
||||
res, err := cli.GetAccount(address)
|
||||
if res == nil {
|
||||
Exit(Fmt("Account does not exist: %X", address))
|
||||
}
|
||||
if err != nil {
|
||||
Exit(Fmt("Error fetching account: %v", err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user