aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/world.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-15 19:05:13 +0800
committerobscuren <geffobscura@gmail.com>2014-08-15 19:05:13 +0800
commitd701b232304149f5e9035213d1710ab71cc4a01d (patch)
tree1420c2e625aa25e7c7543ab07e0307cbaa974031 /ethpipe/world.go
parentace551030fbe9288d0d8660f9431867a42e98c88 (diff)
downloadgo-tangerine-d701b232304149f5e9035213d1710ab71cc4a01d.tar.gz
go-tangerine-d701b232304149f5e9035213d1710ab71cc4a01d.tar.zst
go-tangerine-d701b232304149f5e9035213d1710ab71cc4a01d.zip
Reworking the public js interface (pub) => (pipe)
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 {