aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/world.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpipe/world.go')
-rw-r--r--ethpipe/world.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethpipe/world.go b/ethpipe/world.go
index 72e116d09..4666362f9 100644
--- a/ethpipe/world.go
+++ b/ethpipe/world.go
@@ -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 {