-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Forge script can't skip --skip-simulation #8349
Comments
forge script script/Deploy.s.sol --fork-url https://rpc.buildbear.io/favourite-hawkeye-90f2d77c --private-key "0x0000000000000000000000000000000000000000000000000000000000000011" -vvvvv --broadcast --legacy --skip-simulation --slow
[⠑] Compiling...
[⠃] Compiling 1 files with Solc 0.8.26
[⠊] Solc 0.8.26 finished in 4.45s
Compiler run successful!
Traces:
[191338] → new DeployScript@0x5b73C5498c1E3b4dbA84de0F1833c4a029d90519
└─ ← [Return] 845 bytes of code
[33137] DeployScript::run()
├─ [0] VM::startBroadcast(<pk>)
│ └─ ← [Return]
├─ [26953] 0xdAC17F958D2ee523a2206206994597C13D831ec7::approve(0x1c1B442EF033F2CD7906Db8ee4c4feEDCF647228, 300000000 [3e8])
│ ├─ emit Approval(owner: 0x252Dae0A4b9d9b80F504F6418acd2d364C0c59cD, spender: 0x1c1B442EF033F2CD7906Db8ee4c4feEDCF647228, value: 300000000 [3e8])
│ └─ ← [Stop]
└─ ← [Revert] EvmError: Revert
Error:
script failed: empty revert data |
Checking on this :) |
Duplicate of #6825 |
For additional context see: #6825 (comment) + #5776 (comment)
|
Unfortunately there is no way currently to "fix" it in the sense that the local simulation is a hard requirement. #6825 aims to improve that experience. For now the local simulation must pass. |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
Nightly (2024-07-04)
What command(s) is the bug in?
forge script --skip-simulation
Operating System
Windows
Describe the bug
Original title:
The text was updated successfully, but these errors were encountered: