diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 19:09:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 19:09:11 +0800 |
commit | 91824af46b59b7af84c7591236fe8b34b667ddb8 (patch) | |
tree | 9a1fe3c9de34e0f841f6490ac68eed7cb8e3f14a /ethereal/assets/qml/webapp.qml | |
parent | dd45197bcd174e16adc3b738bf390cc3018a5a28 (diff) | |
download | dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.gz dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.bz2 dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.lz dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.xz dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.zst dexon-91824af46b59b7af84c7591236fe8b34b667ddb8.zip |
Changed getkey and secrettoaddress
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r-- | ethereal/assets/qml/webapp.qml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml index 2267ab4bf..d02c9a82e 100644 --- a/ethereal/assets/qml/webapp.qml +++ b/ethereal/assets/qml/webapp.qml @@ -81,8 +81,9 @@ ApplicationWindow { break case "getKey": - var keys = eth.getKey() - postData(data._seed, keys) + var key = eth.getKey().privateKey; + + postData(data._seed, key) break case "watch": require(1) @@ -99,14 +100,13 @@ ApplicationWindow { } } break; + case "getSecretToAddress": + require(1) + postData(data._seed, eth.secretToAddress(data.args[0])) + break; case "debug": console.log(data.args[0]); break; - case "test": - console.log("in") - webview.experimental.evaluateJavaScript("hello()") - console.log("out") - break; } } catch(e) { console.log(data.call + ": " + e) @@ -134,7 +134,6 @@ ApplicationWindow { postEvent("object:"+stateObject.address(), stateObject) } function onStorageChangeCb(storageObject) { - console.log("storage object cb", storageObject) var ev = ["storage", storageObject.stateAddress, storageObject.address].join(":"); postEvent(ev, [storageObject.address, storageObject.value]) } |