diff options
Diffstat (limited to 'state/state_object.go')
-rw-r--r-- | state/state_object.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/state/state_object.go b/state/state_object.go index 47c882463..a56e91bc5 100644 --- a/state/state_object.go +++ b/state/state_object.go @@ -276,15 +276,14 @@ func (c *StateObject) Init() Code { return c.InitCode } -// To satisfy ClosureRef -func (self *StateObject) Object() *StateObject { - return self -} - func (self *StateObject) Root() []byte { return self.State.Trie.GetRoot() } +func (self *StateObject) SetCode(code []byte) { + self.Code = code +} + // // Encoding // |