-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Throws "Option:unwrap() on None" #5784
Comments
I recommend using Hardhat version 2.22.9. After updating to a newer version, I encountered an unexpected issue where my tests began throwing an 'Option:unwrap() on None' error. Reverting to the previous version should resolve this problem.
|
Same here, I reverted to |
Hey @peersky, this is a likely a bug in changes around our tracing API. Do you have an example to help us reproduce the issue and put together a bug fix? |
git clone https://github.com/peeramid-labs/contracts
git checkout ebd6e2192559c2a847cb2c203a7de5118292f7d5
export FORK_RPC_URL=<set_some_arbitrum>
pnpm install
pnpm add -D [email protected] --save-exact
pnpm run test --bail You should receive 1) DNSFacet.ts
Transfer ownership can be done only by contract owner:
Error: called `Option::unwrap()` on a `None` value |
I tried running the example locally but wasn't able to. To generate a stack trace, could you please try running:
|
|
what issue you faced? |
I assumed that you're developing for Ethereum mainnet, so used a remote endpoint for that. |
arbitrum, forgot to mention, soz :) |
tbh I have quite outdated some of my dependencies because of efforts to migrate all tests and other tooling to ethers-v6, I could think of that as one of possible reasons, as some of peer deps are not met. But given fact that @holyhansss also reported same, could be also on your side. |
Thanks for the detailed bug report @peersky ! We've released EDR v0.6.3 with a fix for this issue (EDR is a dependency of Hardhat). To upgrade to the latest EDR version immediately, you can remove your You can verify that you’re using the latest version of EDR by running the following command: |
The EDR https://github.com/NomicFoundation/hardhat/releases/tag/hardhat%402.22.13 |
Version of Hardhat
2.22.12
What happened?
Getting error when running my tests:
Minimal reproduction steps
Likely because of 2.22.12 release (does not happen in 2.22.11).
here is my dependency list:
Search terms
No response
The text was updated successfully, but these errors were encountered: