Skip to content

fix: align localnet chain id with Studio - #115

Merged
MuncleUscles merged 2 commits into
v0.19-devfrom
fix/localnet-chain-id-61127
Sep 3, 2026
Merged

fix: align localnet chain id with Studio#115
MuncleUscles merged 2 commits into
v0.19-devfrom
fix/localnet-chain-id-61127

Conversation

@MuncleUscles

Copy link
Copy Markdown
Member

Summary

  • set the published Python localnet preset to Studio’s canonical local chain ID 61127
  • retain hosted Studio IDs 61997/61999 and classify all three presets as Studio chains
  • make every Studio preset ID distinct
  • keep uv.lock synchronized by the release command and reject stale lock metadata in native CI

Root cause and impact

Python retained its initial localnet=61999 constant after Studio and genlayer-js moved local Studio to 61127. Contract deploy/write/appeal/top-up/finalize operations sign with the preset ID, so a normal Python client could submit a raw transaction Studio rejects as InvalidChainId.

The cross-repository E2E did not catch this because its harness sets a runtime chain ID and mutates both SDK presets to match it. These new unit tests exercise the shipped preset and the exact transaction passed to the signer instead.

Validation

  • uv lock --check
  • focused chain + signer suite: 65 passed
  • full Python 3.12 unit suite: 224 passed, 17 deselected
  • git diff --check

Release

RC1 is immutable; after this lands the v0.19 development branch should cut 0.19.0-rc.2. The testing-suite RC and Boilerplate release must require rc2, not rc1.

Paired follow-up: update Studio’s stale .env.example local ID and add a bootstrap-consistency regression.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 0b1bc4c5-9554-4497-a69a-4319a2236ce9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MuncleUscles
MuncleUscles merged commit 4556920 into v0.19-dev Sep 3, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant