aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-10-06 18:35:05 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-10-06 18:42:34 +0800
commite1616f77c7fb348f6b171b608d036f2bd4e34cc3 (patch)
tree580e923bedf622c5b872ef2d23cb62fcd98a22b8 /tests
parent44fd3951410fb5923d7e578ac97942a7ea791e96 (diff)
downloadgo-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.gz
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.bz2
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.lz
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.xz
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.tar.zst
go-tangerine-e1616f77c7fb348f6b171b608d036f2bd4e34cc3.zip
core, core/vm, cmd/evm: remove redundant balance check
Diffstat (limited to 'tests')
-rw-r--r--tests/util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/util.go b/tests/util.go
index fb9e518c8..bbc671169 100644
--- a/tests/util.go
+++ b/tests/util.go
@@ -209,11 +209,11 @@ func (self *Env) SetSnapshot(copy vm.Database) {
self.state.Set(copy.(*state.StateDB))
}
-func (self *Env) Transfer(from, to vm.Account, amount *big.Int) error {
+func (self *Env) Transfer(from, to vm.Account, amount *big.Int) {
if self.skipTransfer {
- return nil
+ return
}
- return core.Transfer(from, to, amount)
+ core.Transfer(from, to, amount)
}
func (self *Env) Call(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) {