aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/jit_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/jit_test.go')
-rw-r--r--core/vm/jit_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/vm/jit_test.go b/core/vm/jit_test.go
index 70432d47b..5b3feea99 100644
--- a/core/vm/jit_test.go
+++ b/core/vm/jit_test.go
@@ -105,6 +105,9 @@ func (self *Env) AddLog(log *state.Log) {
}
func (self *Env) Depth() int { return self.depth }
func (self *Env) SetDepth(i int) { self.depth = i }
+func (self *Env) CanTransfer(from Account, balance *big.Int) bool {
+ return from.Balance().Cmp(balance) >= 0
+}
func (self *Env) Transfer(from, to Account, amount *big.Int) error {
return nil
}