-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Closed
Description
While using gavs wallet contract Deposit event. I noticed that when watching for that event, it gets fired multiple times.
var address = web3.eth.transact({
from: 'myAddress',
data: walletABICompiled,
gas: web3.fromDecimal(30400),
gasPrice: web3.fromDecimal(web3.eth.gasPrice)
});
contract = web3.eth.contract(address, walletABI);
// WATCH for incoming transactions
// This fires multiple times, even if i would expect it to happen only ones.
var watcher = web3.eth.watch(contract.Deposit);
watcher.changed(function(result) {
console.log('Deposit', result.args.value);
});Metadata
Metadata
Assignees
Labels
No labels