diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-20 17:19:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-20 17:19:07 +0800 |
commit | fd19142c0db3d2b6651989f5389944f3e211d84f (patch) | |
tree | 96916597bc7366fad5043acb6df7a2711675f504 /ethpub/types.go | |
parent | a2fb265563a3a6eb80efc5720bb0c6f3fec6f397 (diff) | |
download | dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.gz dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.tar.zst dexon-fd19142c0db3d2b6651989f5389944f3e211d84f.zip |
No longer store script directly in the state tree
Diffstat (limited to 'ethpub/types.go')
-rw-r--r-- | ethpub/types.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ethpub/types.go b/ethpub/types.go index c902afc56..75115f4e8 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -2,6 +2,7 @@ package ethpub import ( "encoding/hex" + "fmt" "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethutil" ) @@ -112,6 +113,14 @@ func (c *PStateObject) IsContract() bool { return false } +func (c *PStateObject) Script() string { + if c.object != nil { + return ethutil.Hex(c.object.Script()) + } + + return "" +} + type PStorageState struct { StateAddress string Address string |