optimism
optimism copied to clipboard
Generate contract artifacts fails with missing null.json file
Describe the bug
I am following the steps in the Creating your own L2 Rollup Testnet document and have an error at "Generate contract artifacts" - https://docs.optimism.io/builders/chain-operators/tutorials/create-l2-rollup#deploy-the-l1-contracts
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
forge script scripts/Deploy.s.sol:Deploy --sig 'sync()' --rpc-url $L1_RPC_URL
returns the following output:
System Specs:
-
See required tools and versions:
-
OS: Apple M1 Max, macOS Sonoma, v14.2.1
-
Package Version (or commit hash): https://github.com/ethereum-optimism/optimism/tree/tutorials/chain
Additional context Add any other context about the problem here.
Are you using develop? Please make sure to use the tutorials/chain branch which trails develop because develop gets updated frequently. This is mentioned in the Build the Optimism Monorepo section of the tutorial but maybe needs to be made more obvious.
Yes, I made sure to checkout the correct branch, see below
Strange, will look into this...
I installed the latest (nightly) build of Foundry, is the missing file null.sol part of that package?
Can you try pnpm update:foundry? That will install the version of foundry used in that branch. Once you update, try pnpm clean then pnpm build again and rerun the deploy script.
Something's not right with the version in the repo 9e2830d7f0566e0d00b1104eeaedd5032a4e556e. Keeps erroring out with this when I try pnpm update:foundry or foundryup -C 9e2830d7f0566e0d00b1104eeaedd5032a4e556e
Doesn't happen with the nightly builds foundryup -v nightly-293fad73670b7b59ca901c7f2105bf7a29165a90
Can you try using version 84d9842? I just used that version on a clean install for the tutorial and it seemed to work.