From 6e98e5709a68b1a84e9c3b391eab4a3546c4225d Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Wed, 28 May 2014 12:39:34 +0200
Subject: [PATCH] Set initial used  gas

---
 ethchain/closure.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ethchain/closure.go b/ethchain/closure.go
index f2b46e461..01fd5d794 100644
--- a/ethchain/closure.go
+++ b/ethchain/closure.go
@@ -35,6 +35,7 @@ func NewClosure(callee, object *StateObject, script []byte, state *State, gas, p
 	// and we don't want the transaction's values to change.
 	c.Gas = new(big.Int).Set(gas)
 	c.Price = new(big.Int).Set(price)
+	c.UsedGas = new(big.Int)
 
 	return c
 }
-- 
GitLab