diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-30 07:44:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-30 07:44:12 +0800 |
commit | e85d5dd428c71dd45060082a9af28a40a68a25e4 (patch) | |
tree | b580e1d7fc5f211dda95ed9de86bdc4c9b66321c /ethereal/assets/samplecoin.html | |
parent | 64c2550b3154df7f2c75dda559d91046cb559ffd (diff) | |
download | dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar.gz dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar.bz2 dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar.lz dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar.xz dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.tar.zst dexon-e85d5dd428c71dd45060082a9af28a40a68a25e4.zip |
API changes
Diffstat (limited to 'ethereal/assets/samplecoin.html')
-rw-r--r-- | ethereal/assets/samplecoin.html | 4 |
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; |