Commit e1b7bd51 authored by obscuren's avatar obscuren

Return a disassembled script instead of the hex

parent 56c2f651
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"encoding/hex" "encoding/hex"
"github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethutil" "github.com/ethereum/eth-go/ethutil"
"strings"
) )
// Block interface exposed to QML // Block interface exposed to QML
...@@ -132,7 +133,7 @@ func (c *PStateObject) IsContract() bool { ...@@ -132,7 +133,7 @@ func (c *PStateObject) IsContract() bool {
func (c *PStateObject) Script() string { func (c *PStateObject) Script() string {
if c.object != nil { if c.object != nil {
return ethutil.Hex(c.object.Script()) return strings.Join(ethchain.Disassemble(c.object.Script()), " ")
} }
return "" return ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment