forked from cerc-io/plugeth
Return a disassembled script instead of the hex
This commit is contained in:
parent
56c2f651fe
commit
e1b7bd51ee
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user