I have two contract address and I want to check events on both in one call. I mean, can we pass two contract address in one option param like i do below?
let web3 = new Web3();
web3.setProvider(web3Provider);
let options = {
fromBlock:'latest',
toBlock: 'latest',
address: ADDRESS1,Address2
};
let filter = web3.eth.filter(options);
filter.watch(function(error, result){
console.log(JSON.stringify(result));
});
Or there is any way to combine all events from both contract?