Replies: 1 comment 4 replies
-
Keep in mind that pollingInterval is measured in milliseconds. Is your computer getting hot? It may just be thrashing too much to get the events… |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
const provider = new ethers.providers.JsonRpcProvider(chain.rpc, { name: chain.name, chainId: chain.id, });
provider.pollingInterval = 1;
const contract = new ethers.Contract(CONTRACT_ADDRESS, ABI, provider);
contract.on('event1', async (data) => { console.log(data); });
contract.on('event2', async (data) => { console.log(data); });
3-4 events from 10 - not fired ...
Beta Was this translation helpful? Give feedback.
All reactions