aboutsummaryrefslogtreecommitdiffstats
path: root/vm/environment.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-13 06:26:58 +0800
committerobscuren <geffobscura@gmail.com>2015-03-13 06:26:58 +0800
commit80592f244da3f7323b7fa3e75a17c8e37c97fe8d (patch)
treec003c01b819355eaaada7a93dbb28e578c7fb95c /vm/environment.go
parent3a88da578fc25843308e02ebc3c1d5c431f81820 (diff)
downloaddexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar.gz
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar.bz2
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar.lz
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar.xz
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.tar.zst
dexon-80592f244da3f7323b7fa3e75a17c8e37c97fe8d.zip
more obvious failure for ethtest
Diffstat (limited to 'vm/environment.go')
-rw-r--r--vm/environment.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/environment.go b/vm/environment.go
index 5b4d6c8f0..69832241f 100644
--- a/vm/environment.go
+++ b/vm/environment.go
@@ -36,10 +36,12 @@ type Account interface {
SubBalance(amount *big.Int)
AddBalance(amount *big.Int)
Balance() *big.Int
+ Address() []byte
}
// generic transfer method
func Transfer(from, to Account, amount *big.Int) error {
+ //fmt.Printf(":::%x::: %v < %v\n", from.Address(), from.Balance(), amount)
if from.Balance().Cmp(amount) < 0 {
return errors.New("Insufficient balance in account")
}