-
Notifications
You must be signed in to change notification settings - Fork 554
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
Add support for console.log
#480
Comments
Forgot to mention that https://tenderly.dev/ implements the same |
Has this feature been implemented now? @iamdefinitelyahuman |
Not yet, need #1043 first |
how about now? because it looks like #1043 has been merged. @iamdefinitelyahuman |
The issue is still open so I comment how I got it to work: I just installed hardhat and dependencies normally with npm, then I run my network with The solidity import uses absolute path |
Emitting events with the data you want to log could be an alternative if you don't want to use hardhat: |
Emitting events don't work if the tx reverts.
|
Actually I am pretty sure that there's still logs up to the revert. |
My bad: with eth-brownie indeed |
I actually appreciate the blogpost spam, thanks. Good workaround @zmeghji <3 |
Submitted a PR with the implemented feature. |
Overview
Brownie should support
console.log
as implemented by BuidlerSpecification
import "@nomiclabs/buidler/console.sol";
console
is a library.log
sends a call to an empty account with a particular signature depending on the param type(s) given. It will be possible to extract these from thedebug_traceTransaction
output.Considerations
console.sol
without reliance on NPM? The solution will likely require expanding the brownie package manager.The text was updated successfully, but these errors were encountered: