Closed stephankmin closed 2 months ago
@stephankmin here is a min example you can look to reproduce. You may also make use of https://github.com/matter-labs/era-contracts/blob/main/system-contracts/contracts/Create2Factory.sol for easier implementation.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.2 (bde6d976 2024-08-02T18:50:19.315106000Z)
What command(s) is the bug in?
forge script script/ZkScript.s.sol -vvvvv --zksync --rpc-url https://api.testnet.abs.xyz --private-key $DEPLOYER_PRIVATE_KEY --broadcast
Operating System
macOS (Apple Silicon)
Describe the bug
I'm getting the following error when trying to deploy WETH9 to Abstract Testnet via Create2:
My full deployment script is below. I'm compiling with solc version 0.8.24.
I've also tried using the low level system call described by @elfedy in this issue and still seeing the same error.
I'm running the following command:
forge script script/ZkScript.s.sol -vvvvv --zksync --rpc-url https://api.testnet.abs.xyz --private-key $DEPLOYER_PRIVATE_KEY --broadcast
Here is my foundry.toml: