-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to display events #3
Comments
If there is a working
Also my project is a monorepo : https://github.com/c-layer/contracts |
As a working project, you can checkout my fork of a popular solidity project template. In the commit, you can see that just installed the npm package, added to hardhat-config and added a sample event in solidity code. Can you commit your code to a temporary branch of your repo, so that I can try to look if I can find any solutions. Also if you can once try the sample repo and try to add hardhat-tracer to it? If it works in that, it will rule out any possible platform issue (Windows/Linux/macOS). |
Using the project template, I am able to make to log the events (in particular using truffle tests and javascript). Some of the events were weird. The following is supposed to be ERC20.Transfer:
Any clue why there are so many "Sender" tag displayed for the "to" field ? Some recipient are however correctly set:
|
Found.
|
There was a problem, just tried to fix it. Can you try that? |
Did you mean that |
The latest version of hardhat-tracer fixed the duplicates. Yes, there is a conflict when using both. |
Hi @zemse :) Fwiw, the gas reporter tries to copy the way HH wraps it's own provider implementations. It extends their WrappedProvider class. And wraps that provider as one of their BackwardCompatibilityProviders. Have no idea what I'm doing tbh but this approach might make plugins that read directly off the provider mutually compatible. |
This commit replaces the hacky way of provider method overrides with hardhat's ProviderWrapper.
Hi @cgewecke, sorry for the long delay, I was stuck in college exams. Thank you for the info! It helped to fix the problem :) @sirhill Can you try the latest version |
It's working perfectly now. |
As describe in the README, I've :
npx hardhat test --logs
The tests starts but not events is displayed on successful or unsuccessful testcases.
The option
--logs
is therefore recognized.What can I do or what should I look to investigate further?
The text was updated successfully, but these errors were encountered: