diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-10-06 18:35:05 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-10-06 18:42:34 +0800 |
commit | e1616f77c7fb348f6b171b608d036f2bd4e34cc3 (patch) | |
tree | 580e923bedf622c5b872ef2d23cb62fcd98a22b8 /cmd/evm | |
parent | 44fd3951410fb5923d7e578ac97942a7ea791e96 (diff) | |
download | dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.gz dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.bz2 dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.lz dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.xz dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.zst dexon-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.zip |
core, core/vm, cmd/evm: remove redundant balance check
Diffstat (limited to 'cmd/evm')
-rw-r--r-- | cmd/evm/main.go | 4 |
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) { |