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
Error when I try to run test forked from Arbitrum network #3194
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: 11941d78-8527-444a-8c6c-a16a13590a0d |
The problem with new blocks, in my case, using old blocks helped me. When forking a branch, try not to start from the latest blocks.
|
That doesn't work for me, I still get the same |
I think the underlying cause here is the same as in #2995 The reason is that when forking starts, the latest block is fetched and processed. If that block has txs with "unknown" types, then the fork initialization fails. In this case, since the initialization is triggered by a network helper, then we are (incorrectly) assuming that it failed because of a non-hardhat network. In short:
|
Hi, we just published a beta version of Hardhat that should fix the forking issue. I would appreciate it if you can give it a try:
(If you are using npm 7 or later, you might get some warnings about unsatisfied peer dependencies, but you can ignore those.) If this seems to be working fine, we'll publish a stable version with this change as soon as possible. Please try it out and let us know if it works (or doesn't!) |
I am also getting this issue when connecting to goerli. |
@branzinho-nt I think you use something from |
This fix is now included in the latest release. |
I've been trying to run tests,
npx hardhat test
on the arbitrum network with the basic testing framework that hardhat establishes upon creating a new project and I am continuously met with this error:The only changes I have made were done to the hardhat.config.ts file so that we're forking from the arbitrum network
I've already tried running hardhat patch but that doesn't seem to work for me, and I ONLY get this error when I try forking from the arbitrum network.
N.B. I am running the latest hardhat version to date (^2.11.2).
The text was updated successfully, but these errors were encountered: