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

Error: script failed: <empty revert data> #5

Open
cl0versec opened this issue Feb 24, 2024 · 4 comments
Open

Error: script failed: <empty revert data> #5

cl0versec opened this issue Feb 24, 2024 · 4 comments

Comments

@cl0versec
Copy link

❯ forge script script/FallbackSolution.s.sol -vvvv
[⠃] Compiling...
No files changed, compilation skipped
Traces:
[315867] → new FallbackSolution@0x5b73C5498c1E3b4dbA84de0F1833c4a029d90519
└─ ← 1467 bytes of code

[8306] FallbackSolution::run()
├─ [0] VM::envUint("PRIVATE_KEY") [staticcall]
│ └─ ←
├─ [0] VM::startBroadcast()
│ └─ ← ()
└─ ← EvmError: Revert

Error:
script failed:

something wrong ,i have been set up the private key correcttly

@OraclePi
Copy link

same issues encountered when using sepolia

@OraclePi
Copy link

fixed , try adding --rpc-url when running forge script command

@Igit003
Copy link

Igit003 commented Apr 25, 2024

fixed , try adding --rpc-url when running forge script command

HI mate, I am facing the same issue... how did you go about it?

@lasadie
Copy link

lasadie commented Apr 30, 2024

You need to add in this command and the Sepolia rpc url. See example below:

forge script script/level0_solution.s.sol -vvvv --rpc-url https://rpc.sepolia.org

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

4 participants