aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-07 19:58:54 +0800
committerobscuren <geffobscura@gmail.com>2014-07-07 19:58:54 +0800
commit42bb3d8aaeb4753ac491c31c746b065dbcbb3781 (patch)
treeb482a5747e5f45e3bb1644e2b9fd79db9b6e8f07
parent96ac061e68ffd79f1aa22e12113b0cf58e418c5a (diff)
downloaddexon-42bb3d8aaeb4753ac491c31c746b065dbcbb3781.tar.gz
dexon-42bb3d8aaeb4753ac491c31c746b065dbcbb3781.tar.zst
dexon-42bb3d8aaeb4753ac491c31c746b065dbcbb3781.zip
Removed old if statement. No longer needed
-rw-r--r--ethchain/closure.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go
index cc769de30..1f7f8d703 100644
--- a/ethchain/closure.go
+++ b/ethchain/closure.go
@@ -84,13 +84,7 @@ func (c *Closure) Call(vm *Vm, args []byte) ([]byte, *big.Int, error) {
func (c *Closure) Return(ret []byte) []byte {
// Return the remaining gas to the caller
- // If no caller is present return it to
- // the origin (i.e. contract or tx)
- if c.caller != nil {
- c.caller.ReturnGas(c.Gas, c.Price, c.State)
- } else {
- c.object.ReturnGas(c.Gas, c.Price, c.State)
- }
+ c.caller.ReturnGas(c.Gas, c.Price, c.State)
return ret
}