aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-05 19:09:11 +0800
committerobscuren <geffobscura@gmail.com>2014-05-05 19:09:11 +0800
commit91824af46b59b7af84c7591236fe8b34b667ddb8 (patch)
tree9a1fe3c9de34e0f841f6490ac68eed7cb8e3f14a /ethereal/assets/samplecoin
parentdd45197bcd174e16adc3b738bf390cc3018a5a28 (diff)
downloadgo-tangerine-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.gz
go-tangerine-91824af46b59b7af84c7591236fe8b34b667ddb8.tar.zst
go-tangerine-91824af46b59b7af84c7591236fe8b34b667ddb8.zip
Changed getkey and secrettoaddress
Diffstat (limited to 'ethereal/assets/samplecoin')
-rw-r--r--ethereal/assets/samplecoin/samplecoin.html16
1 files changed, 9 insertions, 7 deletions
diff --git a/ethereal/assets/samplecoin/samplecoin.html b/ethereal/assets/samplecoin/samplecoin.html
index fb0c22c7f..c1ee941a2 100644
--- a/ethereal/assets/samplecoin/samplecoin.html
+++ b/ethereal/assets/samplecoin/samplecoin.html
@@ -26,15 +26,17 @@ function createTransaction() {
function init() {
eth.set({width: 500});
- eth.getKey(function(keyPair) {
- mAddr = keyPair.privateKey;
+ eth.getKey(function(sec) {
+ eth.getSecretToAddress(sec, function(addr) {
+ mAddr = addr;
- eth.getStorageAt(jefcoinAddr, keyPair.address, function(storage) {
- document.querySelector("#current-amount").innerHTML = storage;
- });
+ eth.getStorageAt(jefcoinAddr, addr, function(storage) {
+ document.querySelector("#current-amount").innerHTML = storage;
+ });
- eth.watch(jefcoinAddr, keyPair.address, function(addr, value) {
- document.querySelector("#current-amount").innerHTML = value
+ eth.watch(jefcoinAddr, addr, function(addr, value) {
+ document.querySelector("#current-amount").innerHTML = value
+ });
});
});
}