Replies: 1 comment 2 replies
-
Hardhat node and Ropsten have one difference that is blocks on hh node are mined only on tx while Ropsten its continuous. AFAIR, ethers has an exponential delay mechanism which tries pooling block number initially 4 secs, then after 8 secs 16 secs, and similarly waits for more time before quering. So if your node was standby for a while, your provider might have went far in the exponential pooling interval. Can you try setting auto mine to false (docs), so that the hh node keeps producing blocks even if you don't have any txs. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following event in the contract:
I am using the websocket provider:
Started the listener like this:
But upon sending a transaction from hardhat console(which does show the event in events array), i don't see any output.
I can also call functions from the contract.
Can confirm this issue isn't present in ropsten (via infura)
Beta Was this translation helpful? Give feedback.
All reactions