Reworking the public js interface (pub) => (pipe)

This commit is contained in:
obscuren
2014-08-15 13:05:13 +02:00
parent ace551030f
commit d701b23230
4 changed files with 349 additions and 6 deletions

View File

@@ -30,6 +30,10 @@ func (self *World) Get(addr []byte) *Object {
return &Object{self.State().GetStateObject(addr)}
}
func (self *World) SafeGet(addr []byte) *Object {
return &Object{self.safeGet(addr)}
}
func (self *World) safeGet(addr []byte) *ethstate.StateObject {
object := self.State().GetStateObject(addr)
if object == nil {