diff options
author | Gav Wood <i@gavwood.com> | 2015-01-29 02:19:49 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-01-29 02:19:49 +0800 |
commit | e1c0862658ca80d2a4a85bd15eab38b0482fee1b (patch) | |
tree | b42888c3888baf6af0033fc7edc84ff724c4c31d | |
parent | 42a25f2f26f14a0b0ecfca31b5000f7a1d50240a (diff) | |
download | dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar.gz dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar.bz2 dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar.lz dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar.xz dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.tar.zst dexon-e1c0862658ca80d2a4a85bd15eab38b0482fee1b.zip |
Fix for API.
-rw-r--r-- | example/balance.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/balance.html b/example/balance.html index 88f55315a..2d21e2720 100644 --- a/example/balance.html +++ b/example/balance.html @@ -17,7 +17,7 @@ var originalBalance = web3.toDecimal(balance); document.getElementById('original').innerText = 'original balance: ' + originalBalance + ' watching...'; - web3.eth.watch({altered: coinbase}).changed(function() { + web3.eth.watch('pending').changed(function() { balance = web3.eth.balanceAt(coinbase) var currentBalance = web3.toDecimal(balance); document.getElementById("current").innerText = 'current: ' + currentBalance; |