-
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
npx hardhat run support #28
Comments
I'll explore if this can be supported. But for now this workaround can be used: import hre from 'hardhat';
import { wrapHardhatProvider } from "hardhat-tracer/dist/src/wrapper";
wrapHardhatProvider(hre);
hre.tracer.enabled = true;
hre.tracer.verbosity = 3; // prints all txs, use 1 if you need only failed printings
async function main() {
...
} |
I need this feature too, It would be very usefull. Maybe this is a limitation of hre/ethers but provided workaround show traces only for successfull calls. If call ended up with a revert, no traces are shown. but with npx hardhat trace --hash all traces are shown as a quick and dirty workaraund I use `
` |
Yeah this was the case in V1 because it relied on debug_traceTransaction. But in v2 it hijacks the VM to get the execution info and now you do not need to do this. |
Hey, thanks for the great plugin!
Would it be possible to add support of --trace to hardhat run command?
The text was updated successfully, but these errors were encountered: