-
Notifications
You must be signed in to change notification settings - Fork 140
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 get transaction rerunning information: error processing transaction: user error: gas mismatch between receipt and actual gas used, message: Rerun gas mismatch for transaction #16
Comments
Hey @achiko, There is an issue in We plan on fixing this issue soon, and once that's merged, this issue should be fixed as well. I'll notify you here once the fix in ganache is live! |
Hey @achiko, the Ganache team did a lot of work on the forking feature. Can you try exporting the transaction now? |
I am seeing the same failure with the Hardhat Tenderly plugin. Environment: Selected packages from package.json:
Note that I am not using OZ or truffle to compile/deploy. I am using hardhat and the hardhat-deploy plugin. I have configured the Hardhat EVM to run as a mainnet fork. From
After following these steps:
The
Now I want to export one of the transactions that was executed during a test case.
|
Just to have a trace here as well, we're discussing the issue over Discord. |
I tried to create a reproduction on a near-empty repo. Instead of replicating the error above, I ran into two other problems, earlier in the process. I saved each environment with a README to a public repo here: https://github.com/pyggie/hardhat-tests/tree/tenderly-16 - without openzeppelin, fails looking for config https://github.com/pyggie/hardhat-tests/tree/tenderly-16-oz - uses openzeppelin, finds config but fails with |
Hey @pyggie, we've looked into this and it seems like there are a few problems, so I'll address them here. For this repo, the issue is that we don't support ts files as we can't parse them on our client. We will look into implementing this. I've worked around this by making a For the second repo, it seems like there are a few issues with the Hardhat rpc node. One of them (the one you are experiencing) is related to this issue: NomicFoundation/hardhat#1004 I can offer a workaround, as this seems to only happen on the first block, if you simply repeated the tests and used that hash, without restarting the node, this error wouldn't happen. This exports the transaction to our platform properly, however doing this I've encountered another issue with the node returning an invalid nonce for the deployed contract, causing the exported transaction to fail when rerun by our backend. We're still fiddling around with this and i will keep you posted, and I will link any further relevant issues. Thanks for the detailed examples! |
Hey there. I've started seeing this now with hardhat mainnet fork. Any updates on this? |
Both NomicFoundation/hardhat#1004 and NomicFoundation/hardhat#1005 issues are resolved. The |
We're seeing the same issue. As soon as this module is used, all subsequent transactions on that account return an invalid nonce. Do the evm.NewProcesser calls actually re-broadcast the transaction/otherwise affect the rpc server state? |
This is not a real solution, but I've been able to get it to work by calling |
Hey @0xNero, sorry for the late response, Tenderly CLI doesn't perform any write requests to the RPC node, it is just querying the state and reprocessing the transaction internally. When you say returning an invalid nonce, do you mean metamask? |
Hey @0xdavinchee, Force flag will ignore some checks that are performed in the export command, this can sometimes result in an invalid trace on the dashboard, I'd strongly suggest trying to resolve the error first. It is usually due to incorrect chain config in tenderly.yaml. Can you try adding berlin_block: 0? |
Hey @nebojsa94, that did the trick, thank you! Just curious why does this fix it? |
Hey @0xdavinchee, The Berlin HF introduces gas repricing for P.S. CLI version 1.1.1 adds |
Scenario :
Local ganache in forked mode.
Ganache Command :
ganache-cli -f <my rpc url> -i 1
Yaml Config
Command :
tenderly export 0x2f226311b066a0361e1505319e5061087247199bce513f5f02577f87978c6138 --debug
Error :
The text was updated successfully, but these errors were encountered: