From e1c0862658ca80d2a4a85bd15eab38b0482fee1b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 28 Jan 2015 10:19:49 -0800 Subject: Fix for API. --- example/balance.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3