diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-31 17:50:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-31 17:50:16 +0800 |
commit | 8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 (patch) | |
tree | 347eecc28183ddb9ac81c1e7ae97c755d2e747ba /ethutil | |
parent | df5603de0a34e80a1af6ad03e37ce43728baad35 (diff) | |
download | dexon-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.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)) } |