diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-26 07:47:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-26 07:47:04 +0800 |
commit | e16fd323e800297602a60b7a0e7b7897a55d2fa0 (patch) | |
tree | 1c27a3bc225af36d6b0b2117ba6b649cc3983110 /ethereal/assets/samplecoin.html | |
parent | d0438ac10ab55cd12c1ab5ec3aaf0030185bf131 (diff) | |
download | go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar.gz go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar.bz2 go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar.lz go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar.xz go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.tar.zst go-tangerine-e16fd323e800297602a60b7a0e7b7897a55d2fa0.zip |
Leverage the new watch & address:changed functionality
Diffstat (limited to 'ethereal/assets/samplecoin.html')
-rw-r--r-- | ethereal/assets/samplecoin.html | 5 |
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; }); |