aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-24 17:39:17 +0800
committerobscuren <geffobscura@gmail.com>2014-09-24 17:39:17 +0800
commit57dc435f9b928f5de2a49736a2c71a7bf611289a (patch)
tree9d6981298eef522382b8c549f190b7204d0dd494 /ethutil
parent615d20598ababa5988d5b36a48640c154d8866fd (diff)
downloadgo-tangerine-57dc435f9b928f5de2a49736a2c71a7bf611289a.tar.gz
go-tangerine-57dc435f9b928f5de2a49736a2c71a7bf611289a.tar.zst
go-tangerine-57dc435f9b928f5de2a49736a2c71a7bf611289a.zip
Added TD for each block
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/list.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethutil/list.go b/ethutil/list.go
index 9db96cf18..a5147573a 100644
--- a/ethutil/list.go
+++ b/ethutil/list.go
@@ -2,6 +2,7 @@ package ethutil
import (
"encoding/json"
+ "fmt"
"reflect"
)
@@ -29,6 +30,10 @@ func EmptyList() *List {
// Get N element from the embedded slice. Returns nil if OOB.
func (self *List) Get(i int) interface{} {
+ if self.list.Len() == 3 {
+ fmt.Println("get", i, self.list.Index(i).Interface())
+ }
+
if self.list.Len() > i {
return self.list.Index(i).Interface()
}