Skip to content

contract events fire multiple times #348

@frozeman

Description

@frozeman

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions