aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-31 17:50:16 +0800
committerobscuren <geffobscura@gmail.com>2014-10-31 17:50:16 +0800
commit8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 (patch)
tree347eecc28183ddb9ac81c1e7ae97c755d2e747ba /ethutil
parentdf5603de0a34e80a1af6ad03e37ce43728baad35 (diff)
downloaddexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.gz
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.bz2
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.lz
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.xz
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.tar.zst
dexon-8e0a39f33f9d24ebeca9cc88edf24cc6294552d7.zip
Updated to use ethereum.js
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/list.go3
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))
}