diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 21:54:44 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 21:54:44 +0800 |
commit | e1b7bd51ee5c1310259af450c6455603e5d19fd9 (patch) | |
tree | 9836f4d4f8e2a338e9a88b37014706deeae28d11 | |
parent | 56c2f651fe4752e0a668114a8953342b4aa4f9f9 (diff) | |
download | dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar.gz dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar.bz2 dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar.lz dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar.xz dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.tar.zst dexon-e1b7bd51ee5c1310259af450c6455603e5d19fd9.zip |
Return a disassembled script instead of the hex
-rw-r--r-- | ethpub/types.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethpub/types.go b/ethpub/types.go index afec47fdc..7194de372 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -4,6 +4,7 @@ import ( "encoding/hex" "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethutil" + "strings" ) // Block interface exposed to QML @@ -132,7 +133,7 @@ func (c *PStateObject) IsContract() bool { func (c *PStateObject) Script() string { if c.object != nil { - return ethutil.Hex(c.object.Script()) + return strings.Join(ethchain.Disassemble(c.object.Script()), " ") } return "" |