-
Notifications
You must be signed in to change notification settings - Fork 68
(Draft)update config for qa #804
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| #!/bin/sh | ||||||
| set -eu | ||||||
|
|
||||||
| source ../../contracts/.env | ||||||
| source ../../contracts/.env.qa | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix shell portability issue. The script uses Apply this diff to fix the portability issue: -source ../../contracts/.env.qa
+. ../../contracts/.env.qaOr alternatively, update the shebang: -#!/bin/sh
+#!/bin/bash📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 4-4: In POSIX sh, 'source' in place of '.' is undefined. (SC3046) 🤖 Prompt for AI Agents |
||||||
| QANET=".qanet" | ||||||
| CONTRACT_CONFIG="../../contracts/src/deploy-config/qanetl1.ts" | ||||||
| echo "Regenerating genesis files" | ||||||
|
|
@@ -28,15 +28,15 @@ go run cmd/main.go genesis l2 \ | |||||
| --outfile.genbatchheader $QANET/genesis-batch-header.json | ||||||
| touch "$QANET/done" | ||||||
| ) | ||||||
| l2_genesis_state_root=$(cat $QANET/rollup.json | jq -r .l2_genesis_state_root) | ||||||
| withdraw_root=$(cat $QANET/rollup.json | jq -r .withdraw_root) | ||||||
| # l2_genesis_state_root=$(cat $QANET/rollup.json | jq -r .l2_genesis_state_root) | ||||||
| # withdraw_root=$(cat $QANET/rollup.json | jq -r .withdraw_root) | ||||||
| genesis_batch_header=$(cat $QANET/rollup.json | jq -r .genesis_batch_header) | ||||||
|
|
||||||
| echo "Replacing l2_genesis_state_root: $l2_genesis_state_root" | ||||||
| sed -i "s#rollupGenesisStateRoot: '.*'#rollupGenesisStateRoot: '$l2_genesis_state_root'#g" $CONTRACT_CONFIG | ||||||
| # echo "Replacing l2_genesis_state_root: $l2_genesis_state_root" | ||||||
| # sed -i "s#rollupGenesisStateRoot: '.*'#rollupGenesisStateRoot: '$l2_genesis_state_root'#g" $CONTRACT_CONFIG | ||||||
|
|
||||||
| echo "Replacing withdraw_root: $withdraw_root" | ||||||
| sed -i "s#withdrawRoot: '.*'#withdrawRoot: '$withdraw_root'#g" $CONTRACT_CONFIG | ||||||
| # echo "Replacing withdraw_root: $withdraw_root" | ||||||
| # sed -i "s#withdrawRoot: '.*'#withdrawRoot: '$withdraw_root'#g" $CONTRACT_CONFIG | ||||||
|
|
||||||
| echo "Replacing genesis_batch_header: $genesis_batch_header" | ||||||
| sed -i "s#batchHeader: '.*'#batchHeader: '$genesis_batch_header'#g" $CONTRACT_CONFIG | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify all dependent systems are updated for the chain ID change.
Changing the L1 chain ID from 900 to 560048 (Hoodi Chain) is a breaking change that affects L1 network connectivity, cross-chain operations, and any external integrations. Ensure all dependent systems, SDKs, and documentation are updated accordingly.
Run the following script to check for hardcoded references to the old chain ID:
🏁 Script executed:
Length of output: 30
I'll correct the script and conduct a more comprehensive search for references to the old chain ID 900.
🏁 Script executed:
Length of output: 306850
Action required — update all hardcoded L1 chain-ID references (900 → 560048).
Changing L1 from 900 to 560048 is a breaking, network-level change. Search found hardcoded 900 in deployment, runtime, test and contract code. Update these references (or make the value configurable), coordinate a rollout with node operators/validators, and run full integration tests.
High‑priority locations to update now:
Recommended next steps:
🤖 Prompt for AI Agents