-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Syncing deployment DisputeGameFactory: contract DisputeGameFactory.0.8.15. script failed: Error parsing version #10114
Comments
can you show more specify foundry version? in path xxx/optimism to run command: will get like this: and what is your optimism branch version number? is it |
i have got the same problem The forge version is and yes it is the tutorials/chain |
your version is right, have you checked if contracts have been deployed to L1? in the latest version of optimism(v1.7.2+), we don‘t rely on the artifacts, so it's fine in latest version no need to run this command. i m not sure this changes if have been sync to the branch |
yes, i got forge version == 0.2.0 and i'm under the branch |
yes , the deployment is successful , but under the branch "tutorials/chain", to generate the L2's genesis files need the artifacts.So i have to get it. |
wooo nice! yep i have met some similar issues, the i m guessing you need to change this when you run the
this flag need |
yes, just change the |
Bug Description
i'm trying to build my first L2 chain in the guide of https://docs.optimism.io/builders/chain-operators/tutorials/create-l2-rollup,when i finished deploying the L1 contract with the command :
forge script scripts/Deploy.s.sol:Deploy --private-key $GS_ADMIN_PRIVATE_KEY --broadcast --rpc-url $L1_RPC_URL --slow
it worked well with the output:`ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
Total Paid: 0.103279203582127804 ETH (34057669 gas * avg 3.031470256 gwei)
Transactions saved to: /Users/user/optimism/packages/contracts-bedrock/broadcast/Deploy.s.sol/11155111/run-latest.json
Sensitive values saved to: /Users/user/optimism/packages/contracts-bedrock/cache/Deploy.s.sol/11155111/run-latest.json
then i ran
forge script scripts/Deploy.s.sol:Deploy --sig 'sync()' --rpc-url $L1_RPC_URL
to Generate contract artifacts and an error occured :
Logs:
`": []\n },\n "additionalContracts": [],\n "isFixedGasLimit": false\n}'"])
│ └─ ← [Return] 0x6e756c6c
├─ [0] VM::ffi(["bash", "-c", "echo DisputeGameFactory.0.8.15 | sed -E 's/[.][0-9]+\.[0-9]+\.[0-9]+//g'"])
│ └─ ← [Return] 0x4469737075746547616d65466163746f7279
├─ [0] VM::getCode("DisputeGameFactory.sol:DisputeGameFactory.0.8.15") [staticcall]
│ └─ ← [Revert] Error parsing version
└─ ← [Revert] Error parsing version
== Logs ==
Connected to network with chainid 11155111
Storing temp deployment data in /Users/user/optimism/packages/contracts-bedrock/deployments/getting-started/.deploy
DeployConfig: reading file /Users/user/optimism/packages/contracts-bedrock/deploy-config/getting-started.json
Deploying from Deploy
Deployment context: getting-started
Syncing 27 deployments
Using deployment artifact /Users/user/optimism/packages/contracts-bedrock/broadcast/Deploy.s.sol/11155111/run-latest.json
Syncing deployment AddressManager: contract AddressManager
Syncing deployment DisputeGameFactory: contract DisputeGameFactory.0.8.15
Error:
script failed: Error parsing version`
Environment Information:
git 2.44.0
go 1.22.1
node 21.7.1
pnpm 8.15.6
foundry 0.2.0
make 3.81
jq 1.7.1
direnv 2.34.0
solc. 0.8.15
anybody can help solve this? Thx!
The text was updated successfully, but these errors were encountered: