aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args_test.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-23 02:24:10 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-23 02:24:10 +0800
commit2ea2261156eae9e7d783ff5f8663ad95113c8386 (patch)
tree24bf7d7c1f54a27b8db8170d1f0d315bbf0e7c85 /rpc/args_test.go
parent35ad9febceacbb0a40efe84b08205bb13222c1b5 (diff)
downloaddexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar.gz
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar.bz2
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar.lz
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar.xz
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.tar.zst
dexon-2ea2261156eae9e7d783ff5f8663ad95113c8386.zip
Accept num or hex as index
Diffstat (limited to 'rpc/args_test.go')
-rw-r--r--rpc/args_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/args_test.go b/rpc/args_test.go
index e78981a41..9e0cf179f 100644
--- a/rpc/args_test.go
+++ b/rpc/args_test.go
@@ -2264,7 +2264,7 @@ func TestBlockNumIndexArgsBlocknumInvalid(t *testing.T) {
}
func TestBlockNumIndexArgsIndexInvalid(t *testing.T) {
- input := `["0x29a", 1]`
+ input := `["0x29a", true]`
args := new(BlockNumIndexArgs)
str := ExpectInvalidTypeError(json.Unmarshal([]byte(input), &args))