From e1b7bd51ee5c1310259af450c6455603e5d19fd9 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 21 May 2014 15:54:44 +0200 Subject: [PATCH] Return a disassembled script instead of the hex --- ethpub/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ""