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.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/ethereal/assets/samplecoin.html b/ethereal/assets/samplecoin.html
index 1b89be877..73368a0b8 100644
--- a/ethereal/assets/samplecoin.html
+++ b/ethereal/assets/samplecoin.html
@@ -22,14 +22,12 @@ 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("object:change", function(stateObject) {
+ eth.watch(jefcoinAddr, function(stateObject) {
debug(stateObject);
eth.getStorage(jefcoinAddr, key, function(storage) {
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;