aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin.html
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/samplecoin.html')
-rw-r--r--ethereal/assets/samplecoin.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/ethereal/assets/samplecoin.html b/ethereal/assets/samplecoin.html
index 476283f60..1b89be877 100644
--- a/ethereal/assets/samplecoin.html
+++ b/ethereal/assets/samplecoin.html
@@ -22,12 +22,15 @@ function tests() {
}
function init() {
+ eth.watch(jefcoinAddr);
+
eth.getKey(function(key) {
eth.getStorage(jefcoinAddr, key, function(storage) {
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
});
- eth.on("block:new", function() {
+ eth.on("object:change", function(stateObject) {
+ debug(stateObject);
eth.getStorage(jefcoinAddr, key, function(storage) {
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
});