Updated to use ethereum.js

This commit is contained in:
obscuren
2014-10-31 10:50:16 +01:00
parent df5603de0a
commit 8e0a39f33f
13 changed files with 745 additions and 79 deletions

View File

@ -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))
}