aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 21:54:44 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 21:54:44 +0800
commite1b7bd51ee5c1310259af450c6455603e5d19fd9 (patch)
tree9836f4d4f8e2a338e9a88b37014706deeae28d11
parent56c2f651fe4752e0a668114a8953342b4aa4f9f9 (diff)
downloaddexon-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.go3
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 ""