aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:14:31 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:14:31 +0800
commit49a912ce33274f60659ddb3af7e3fec89ee1b59e (patch)
tree2f9746df7472c2e0bb5d3fd236ead134d5615d6d /rpc/args.go
parent1f3814141b94166cc5bf5b439babe6cc56b3cebf (diff)
downloadgo-tangerine-49a912ce33274f60659ddb3af7e3fec89ee1b59e.tar.gz
go-tangerine-49a912ce33274f60659ddb3af7e3fec89ee1b59e.tar.zst
go-tangerine-49a912ce33274f60659ddb3af7e3fec89ee1b59e.zip
Undo xeth changes
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 3637aff66..19258263c 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -61,7 +61,7 @@ func numString(raw interface{}, number *int64) error {
}
type GetBlockByHashArgs struct {
- BlockHash common.Hash
+ BlockHash string
IncludeTxs bool
}
@@ -80,7 +80,7 @@ func (args *GetBlockByHashArgs) UnmarshalJSON(b []byte) (err error) {
if !ok {
return NewInvalidTypeError("blockHash", "not a string")
}
- args.BlockHash = common.HexToHash(argstr)
+ args.BlockHash = argstr
if len(obj) > 1 {
args.IncludeTxs = obj[1].(bool)
@@ -360,7 +360,7 @@ func (args *BlockNumIndexArgs) UnmarshalJSON(b []byte) (err error) {
}
type HashIndexArgs struct {
- Hash common.Hash
+ Hash string
Index int64
}
@@ -379,7 +379,7 @@ func (args *HashIndexArgs) UnmarshalJSON(b []byte) (err error) {
if !ok {
return NewInvalidTypeError("hash", "not a string")
}
- args.Hash = common.HexToHash(arg0)
+ args.Hash = arg0
if len(obj) > 1 {
arg1, ok := obj[1].(string)