diff options
Diffstat (limited to 'ethutil/list.go')
-rw-r--r-- | ethutil/list.go | 3 |
1 files changed, 2 insertions, 1 deletions
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)) } |