tidy
This commit is contained in:
13
rpc/args.go
13
rpc/args.go
@ -29,7 +29,7 @@ func blockHeight(raw interface{}, number *int64) error {
|
||||
// Parse as string/hexstring
|
||||
str, ok := raw.(string)
|
||||
if !ok {
|
||||
return NewInvalidTypeError("blockNumber", "not a number or string")
|
||||
return NewInvalidTypeError("", "not a number or string")
|
||||
}
|
||||
|
||||
switch str {
|
||||
@ -82,6 +82,17 @@ func numString(raw interface{}, number *int64) error {
|
||||
// }
|
||||
// }
|
||||
|
||||
// func hashString(raw interface{}, hash *string) error {
|
||||
// argstr, ok := raw.(string)
|
||||
// if !ok {
|
||||
// return NewInvalidTypeError("", "not a string")
|
||||
// }
|
||||
// v := common.IsHex(argstr)
|
||||
// hash = &argstr
|
||||
|
||||
// return nil
|
||||
// }
|
||||
|
||||
type GetBlockByHashArgs struct {
|
||||
BlockHash string
|
||||
IncludeTxs bool
|
||||
|
Reference in New Issue
Block a user