diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-19 18:35:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-19 18:35:17 +0800 |
commit | 24f2b2afc3a848190822c382e6aa31c8ab120f07 (patch) | |
tree | 827603f276bbcba1240f7f6760df48a0349f0286 /ethchain/stack.go | |
parent | c866fcc5b37b53e0d11c1fd7e6cb971859537f2c (diff) | |
download | dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar.gz dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar.bz2 dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar.lz dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar.xz dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.tar.zst dexon-24f2b2afc3a848190822c382e6aa31c8ab120f07.zip |
Running contracts fixed
Diffstat (limited to 'ethchain/stack.go')
-rw-r--r-- | ethchain/stack.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ethchain/stack.go b/ethchain/stack.go index c80d01e5c..02834bd78 100644 --- a/ethchain/stack.go +++ b/ethchain/stack.go @@ -163,5 +163,12 @@ func (st *Stack) Push(d *big.Int) { st.data = append(st.data, d) } func (st *Stack) Print() { - fmt.Println(st.data) + fmt.Println("# val (STACK)") + if len(st.data) > 0 { + for i, val := range st.data { + fmt.Printf("%-3d %v\n", i, val) + } + } else { + fmt.Println("-- empty --") + } } |