aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
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 /cmd
parent37abbcb54b6c41e819978283064ad48d447deef1 (diff)
parente1616f77c7fb348f6b171b608d036f2bd4e34cc3 (diff)
downloadgo-tangerine-bba4dcb72f216db531f97474ef636790cc82f318.tar.gz
go-tangerine-bba4dcb72f216db531f97474ef636790cc82f318.tar.zst
go-tangerine-bba4dcb72f216db531f97474ef636790cc82f318.zip
Merge pull request #1880 from Gustav-Simonsson/core_transfer
core, core/vm, cmd/evm: remove redundant balance check
Diffstat (limited to 'cmd')
-rw-r--r--cmd/evm/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index bf24da982..e170dc190 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -217,8 +217,8 @@ func (self *VMEnv) AddLog(log *vm.Log) {
func (self *VMEnv) CanTransfer(from common.Address, balance *big.Int) bool {
return self.state.GetBalance(from).Cmp(balance) >= 0
}
-func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
- return core.Transfer(from, to, amount)
+func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) {
+ core.Transfer(from, to, amount)
}
func (self *VMEnv) Call(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) {