aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index cc9a801f9..b9d994321 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -191,13 +191,12 @@ func (self *StateObject) Copy() *StateObject {
}
stateObject.script = ethutil.CopyBytes(self.script)
stateObject.initScript = ethutil.CopyBytes(self.initScript)
- //stateObject.gasPool.Set(self.gasPool)
- return self
+ return stateObject
}
func (self *StateObject) Set(stateObject *StateObject) {
- self = stateObject
+ *self = *stateObject
}
//