good morning!!!!

Skip to content
Snippets Groups Projects
Commit 53ac85cf authored by Taylor Gerring's avatar Taylor Gerring
Browse files

BlockHash must be a string

parent d465e410
Branches
Tags
No related merge requests found
...@@ -40,7 +40,12 @@ func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) { ...@@ -40,7 +40,12 @@ func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) {
if len(obj) < 1 { if len(obj) < 1 {
return errArguments return errArguments
} }
args.BlockHash = obj[0].(string)
argstr, ok := obj[0].(string)
if !ok {
return errDecodeArgs
}
args.BlockHash = argstr
if len(obj) > 1 { if len(obj) > 1 {
args.Transactions = obj[1].(bool) args.Transactions = obj[1].(bool)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment