Skip to content
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

called Result::unwrap() on an Err value: StripPrefixError(()) #777

Open
iondex opened this issue Nov 6, 2024 · 1 comment
Open

called Result::unwrap() on an Err value: StripPrefixError(()) #777

iondex opened this issue Nov 6, 2024 · 1 comment

Comments

@iondex
Copy link

iondex commented Nov 6, 2024

Describe the bug
Panic: aderyn_driver/src/lib.rs:34
called Result::unwrap() on an Err value: StripPrefixError(())
Aderyn version: 0.3.2
Operating system: macos

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo: https://github.com/PufferFinance/puffer-contracts
  2. Run cd mainnet-contracts && forge build
  3. Run aderyn
  4. The error happens
@alexroan
Copy link
Contributor

alexroan commented Jan 13, 2025

The issue seems to be caused by contracts within ./mainnet-contracts/ referencing node_modules/l2-contracts, which is actually a symbolic link to ../l2-contracts/.

Aderyn tries to strip a specific path prefix that does not exist from the file path. Example:

It's trying to strip this:

  • ~/Documents/puffer-contracts/mainnet-contracts/ from
  • ~/Documents/puffer-contracts/l2-contracts/src/L2RewardManagerStorage.sol

which it obviously can't 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants