aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/debugger.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 03:39:45 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 03:39:45 +0800
commit098f7f23ce62d3f0c60d30d325576de93795cc4b (patch)
tree0acb745dd7b4bced8c196cad552d6ff4d678bb5d /ethereal/ui/debugger.go
parent8aea468744e223f310da98f7478fb5b468d99563 (diff)
downloaddexon-098f7f23ce62d3f0c60d30d325576de93795cc4b.tar.gz
dexon-098f7f23ce62d3f0c60d30d325576de93795cc4b.tar.zst
dexon-098f7f23ce62d3f0c60d30d325576de93795cc4b.zip
changed name for ethutil hex functions; and access to keyring via keyManager
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r--ethereal/ui/debugger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go
index 85dd45563..5ad1b4a2c 100644
--- a/ethereal/ui/debugger.go
+++ b/ethereal/ui/debugger.go
@@ -49,7 +49,7 @@ func (self *DebuggerWindow) SetData(data string) {
self.win.Set("dataText", data)
}
func (self *DebuggerWindow) SetAsm(data string) {
- dis := ethchain.Disassemble(ethutil.FromHex(data))
+ dis := ethchain.Disassemble(ethutil.Hex2Bytes(data))
for _, str := range dis {
self.win.Root().Call("setAsm", str)
}
@@ -101,7 +101,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
gasPrice = ethutil.Big(gasPriceStr)
value = ethutil.Big(valueStr)
// Contract addr as test address
- keyPair = ethutil.GetKeyRing().Get(0)
+ keyPair = self.lib.eth.KeyManager().KeyPair()
callerTx = ethchain.NewContractCreationTx(ethutil.Big(valueStr), gas, gasPrice, script)
)
callerTx.Sign(keyPair.PrivateKey)