aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpub/types.go')
-rw-r--r--ethpub/types.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ethpub/types.go b/ethpub/types.go
index 31b92f6ed..352598148 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -244,6 +244,14 @@ func (c *PStateObject) Script() string {
return ""
}
+func (c *PStateObject) HexScript() string {
+ if c.object != nil {
+ return ethutil.Hex(c.object.Script())
+ }
+
+ return ""
+}
+
type PStorageState struct {
StateAddress string
Address string