aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/test.html')
-rw-r--r--ethereal/assets/test.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/ethereal/assets/test.html b/ethereal/assets/test.html
index 1cfcad6bb..476283f60 100644
--- a/ethereal/assets/test.html
+++ b/ethereal/assets/test.html
@@ -23,11 +23,16 @@ function tests() {
function init() {
eth.getKey(function(key) {
+ eth.getStorage(jefcoinAddr, key, function(storage) {
+ document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
+ });
+
+ eth.on("block:new", function() {
eth.getStorage(jefcoinAddr, key, function(storage) {
- debug("Currently in storage: ", storage);
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
- })
- })
+ });
+ });
+ });
}
</script>