Skip to content

Commit

Permalink
cmd: rpc.go fix error parsing height message (#2469)
Browse files Browse the repository at this point in the history
Fixing the error message returned by the rpc cli client, when an
invalid height is passed to the `Get`, `GetAll` commands of the Blob
module.
  • Loading branch information
tuxcanfly authored Jul 12, 2023
1 parent 889f569 commit e41f626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/celestia/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func parseParams(method string, params []string) []interface{} {
// 1. Height
num, err := strconv.ParseUint(params[0], 10, 64)
if err != nil {
panic("Error parsing gas limit: uint64 could not be parsed.")
panic("Error parsing height: uint64 could not be parsed.")
}
parsedParams[0] = num
// 2. NamespaceID
Expand All @@ -215,7 +215,7 @@ func parseParams(method string, params []string) []interface{} {
// 1. Height
num, err := strconv.ParseUint(params[0], 10, 64)
if err != nil {
panic("Error parsing gas limit: uint64 could not be parsed.")
panic("Error parsing height: uint64 could not be parsed.")
}
parsedParams[0] = num
// 2. Namespace
Expand Down

0 comments on commit e41f626

Please sign in to comment.