diff options
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/list.go | 5 |
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() } |