diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:05 +0800 |
commit | dd45197bcd174e16adc3b738bf390cc3018a5a28 (patch) | |
tree | 13db37ed9ca5358c60f08cf4bd1a3ebb0ca0e22a /ethereal/assets/samplecoin | |
parent | 2582d719b2a8a3facac4410dd9a2ddaf5000f038 (diff) | |
download | go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.gz go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.bz2 go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.lz go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.xz go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.zst go-tangerine-dd45197bcd174e16adc3b738bf390cc3018a5a28.zip |
Added storage watch
Diffstat (limited to 'ethereal/assets/samplecoin')
-rw-r--r-- | ethereal/assets/samplecoin/samplecoin.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ethereal/assets/samplecoin/samplecoin.html b/ethereal/assets/samplecoin/samplecoin.html index 02e2bd6ea..fb0c22c7f 100644 --- a/ethereal/assets/samplecoin/samplecoin.html +++ b/ethereal/assets/samplecoin/samplecoin.html @@ -5,9 +5,11 @@ <link rel="stylesheet" href="bootstrap.min.css"> <link rel="stylesheet" href="bootstrap-theme.min.css"> <link rel="stylesheet" href="samplecoin.css"> +<script src="promise.min.js"></script> <meta name="viewport" content="minimum-scale=1; maximum-scale=1; initial-scale=1;"> <script type="text/javascript"> + var jefcoinAddr = "3dff537f51350239abc95c76a5864aa605259e7d" var mAddr = "" @@ -17,12 +19,12 @@ function createTransaction() { var data = (("0x"+addr).pad(32) + amount.pad(32)).unbin() eth.transact(mAddr, jefcoinAddr, 0, "10000000", "250", data, function(receipt) { - debug("received tx hash:", receipt) + debug("received tx hash:", reciept.address) }) } function init() { - eth.set({width: 500}) + eth.set({width: 500}); eth.getKey(function(keyPair) { mAddr = keyPair.privateKey; @@ -31,10 +33,8 @@ function init() { document.querySelector("#current-amount").innerHTML = storage; }); - eth.watch(jefcoinAddr, function(stateObject) { - eth.getStorageAt(jefcoinAddr, keyPair.address, function(storage) { - document.querySelector("#current-amount").innerHTML = storage; - }); + eth.watch(jefcoinAddr, keyPair.address, function(addr, value) { + document.querySelector("#current-amount").innerHTML = value }); }); } |