From 8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 31 Oct 2014 10:50:16 +0100 Subject: Updated to use ethereum.js --- ethutil/list.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ethutil') diff --git a/ethutil/list.go b/ethutil/list.go index 6919a02f5..db276f1e3 100644 --- a/ethutil/list.go +++ b/ethutil/list.go @@ -69,7 +69,8 @@ func (self *List) Interface() interface{} { // For JavaScript <3 func (self *List) ToJSON() string { - var list []interface{} + // make(T, 0) != nil + list := make([]interface{}, 0) for i := 0; i < self.Length; i++ { list = append(list, self.Get(i)) } -- cgit