diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-14 19:55:08 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-14 19:55:08 +0800 |
commit | f18ec51cb3959cc662bfc7b84314cd1d3b1541b5 (patch) | |
tree | 1c3d99407624dc791db0cb6c135bd2bd1dfc56cf /ethereal/ui/ui_lib.go | |
parent | e8147cf7c6f508910698e6743ad347c78010ffe3 (diff) | |
download | dexon-f18ec51cb3959cc662bfc7b84314cd1d3b1541b5.tar.gz dexon-f18ec51cb3959cc662bfc7b84314cd1d3b1541b5.tar.zst dexon-f18ec51cb3959cc662bfc7b84314cd1d3b1541b5.zip |
Switched to new keyring methods
Diffstat (limited to 'ethereal/ui/ui_lib.go')
-rw-r--r-- | ethereal/ui/ui_lib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go index 6736e79ae..0c43f1675 100644 --- a/ethereal/ui/ui_lib.go +++ b/ethereal/ui/ui_lib.go @@ -138,7 +138,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string) callerTx := ethchain.NewContractCreationTx(ethutil.Big(valueStr), ethutil.Big(gasStr), ethutil.Big(gasPriceStr), callerScript, nil) // Contract addr as test address - keyPair := ethutil.Config.Db.GetKeys()[0] + keyPair := ethutil.GetKeyRing().Get(0) account := ui.eth.StateManager().TransState().GetStateObject(keyPair.Address()) c := ethchain.MakeContract(callerTx, state) callerClosure := ethchain.NewClosure(account, c, c.Script(), state, ethutil.Big(gasStr), ethutil.Big(gasPriceStr)) |