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
Deployment crashes #361
Comments
@PatrickAlphaC thanks for flagging. Will triage this accordingly. |
@PatrickAlphaC hmmm i cannot reproduce exactly.... Again
Steps taken to reproduce:
Can you share the script you are executing? When I run // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Script, console} from "forge-std/Script.sol";
contract CounterScript is Script {
function setUp() public {}
function run() public {
vm.broadcast();
}
} I just want to confirm we are testing the same thing! |
Hey @dutterbutter here are the exact steps to reproduce:
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Script, console} from "forge-std/Script.sol";
+import {Counter} from "../src/Counter.sol";
contract CounterScript is Script {
function setUp() public {}
function run() public {
- vm.broadcast();
+ vm.startBroadcast();
+ Counter counter = new Counter();
+ vm.stopBroadcast();
}
}
You will see the following error in the terminal output:
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.2 (5ae06f9 2024-04-30T00:24:57.466082000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Intell)
Describe the bug
Zksync Testnet Issues
If you create a default project with
forge init
and try to deploy with a deploy script like such:forge script script/Counter.s.sol --zksync --rpc-url zksync-sepolia --account yellow --sender $DEFAULT_SENDER --broadcast --verify -vvvv
After running the following script (and entering password for decrypting the
yellow
key), the program crashes with:This can be fixed by adding
--legacy
to the script (making them type0 transactions). You'll then have to updatefoundry.toml
with the following:Otherwise it'll fail with:
And then it will just freeze, and get stuck here forever:
Requested action items
ZkSync Mainne Issues
However, everything works "pretty good" for zksync mainnet, except, my contracts are not being verified. I get this in foundry:
The text was updated successfully, but these errors were encountered: