diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-23 17:24:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-23 17:24:07 +0800 |
commit | 8c96c5662f9a362c50f3e6e04e886e2518cc68b9 (patch) | |
tree | 2e14d83d9947b4a7e06518fea8b4b167e3d7cae8 | |
parent | 842d52db7b98fb309ed99ccc4b65ca3973fb81ec (diff) | |
download | dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar.gz dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar.bz2 dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar.lz dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar.xz dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.tar.zst dexon-8c96c5662f9a362c50f3e6e04e886e2518cc68b9.zip |
Added hex script method
-rw-r--r-- | ethpub/types.go | 8 |
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 |