diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-21 18:14:38 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-21 18:14:38 +0800 |
commit | 4ad8b28794c3fe620a1665fec02ff4280c5f79b8 (patch) | |
tree | b704e953b177086703269de4643a3ecdbdbbfa3b /rpc | |
parent | 1dc91975ad801418f6756381275d52549949f4dd (diff) | |
parent | 6c2b703c5871f5d8adf3bc4032385135e665018b (diff) | |
download | go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar.gz go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar.bz2 go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar.lz go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar.xz go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.tar.zst go-tangerine-4ad8b28794c3fe620a1665fec02ff4280c5f79b8.zip |
Merge pull request #760 from obscuren/develop
core: transaction fixes
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/args.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go index 4b3840285..d03f914a7 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -739,10 +739,14 @@ func (args *BlockFilterArgs) UnmarshalJSON(b []byte) (err error) { for j, jv := range argarray { if v, ok := jv.(string); ok { topicdbl[i][j] = v + } else if jv == nil { + topicdbl[i][j] = "" } else { return NewInvalidTypeError(fmt.Sprintf("topic[%d][%d]", i, j), "is not a string") } } + } else if iv == nil { + topicdbl[i] = []string{""} } else { return NewInvalidTypeError(fmt.Sprintf("topic[%d]", i), "not a string or array") } |