aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-09 02:32:30 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-09 02:32:30 +0800
commitbba4dcb72f216db531f97474ef636790cc82f318 (patch)
tree82ec63fef6617b3f3ae585cd26c8e430d212d9dd /core/vm
parent37abbcb54b6c41e819978283064ad48d447deef1 (diff)
parente1616f77c7fb348f6b171b608d036f2bd4e34cc3 (diff)
downloaddexon-bba4dcb72f216db531f97474ef636790cc82f318.tar.gz
dexon-bba4dcb72f216db531f97474ef636790cc82f318.tar.zst
dexon-bba4dcb72f216db531f97474ef636790cc82f318.zip
Merge pull request #1880 from Gustav-Simonsson/core_transfer
core, core/vm, cmd/evm: remove redundant balance check
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/environment.go2
-rw-r--r--core/vm/jit_test.go4
2 files changed, 2 insertions, 4 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go
index f8e19baea..ec739b26c 100644
--- a/core/vm/environment.go
+++ b/core/vm/environment.go
@@ -51,7 +51,7 @@ type Environment interface {
// Determines whether it's possible to transact
CanTransfer(from common.Address, balance *big.Int) bool
// Transfers amount from one account to the other
- Transfer(from, to Account, amount *big.Int) error
+ Transfer(from, to Account, amount *big.Int)
// Adds a LOG to the state
AddLog(*Log)
// Adds a structured log to the env
diff --git a/core/vm/jit_test.go b/core/vm/jit_test.go
index 8c45f2ce7..cb09e179d 100644
--- a/core/vm/jit_test.go
+++ b/core/vm/jit_test.go
@@ -152,9 +152,7 @@ func (self *Env) SetDepth(i int) { self.depth = i }
func (self *Env) CanTransfer(from common.Address, balance *big.Int) bool {
return true
}
-func (self *Env) Transfer(from, to Account, amount *big.Int) error {
- return nil
-}
+func (self *Env) Transfer(from, to Account, amount *big.Int) {}
func (self *Env) Call(caller ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) {
return nil, nil
}