You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your script is ending before the listener is called, thus the console.log(">>> aUint ->", a, event); is not always outputed. You can fix this by delaying your script execution by a couple milliseconds with something like await new Promise((resolve) => setTimeout(resolve, 50));
There's no tx.events so console.log('Event emitted:', tx.events); will always log undefined. If you want to get the logs from the tx, you'll need the transaction receipt and access the logs, then you can filter based on the contract address.
Version of Hardhat
2.22.3
What happened?
solidity receive event sometimes work, sometimes not in no condition change.
After runing the "## command entry shell code ", the result sometimes is :
which is failed result.
other time is
which is my expect result, where in one or two times in ten of "## command entry shell code"
Minimal reproduction steps
command entry shell code
clear && npx hardhat typechain && npx hardhat test3
Search terms
hardhat event not console in terminal, #3935
The text was updated successfully, but these errors were encountered: