Skip to content

Comments

cherrypick merge commit#1942

Closed
kelemeno wants to merge 2 commits intodraft-v31from
kl/base-token-zkos
Closed

cherrypick merge commit#1942
kelemeno wants to merge 2 commits intodraft-v31from
kl/base-token-zkos

Conversation

@kelemeno
Copy link
Contributor

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +54 to +58
bytes32 bytecodeHash,
uint32 bytecodeLength,
bytes32 observableBytecodeHash,
uint32 observableBytecodeLength
) = abi.decode(_bytecodeInfo, (bytes32, uint32, bytes32, uint32));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Decode now requires fourth field in ZKOS bytecode info

The new unsafeForceDeployZKsyncOS decodes _bytecodeInfo into four fields, including an observableBytecodeLength, but ZKSyncOSBytecodeInfo.encodeZKSyncOSBytecodeInfo (used to build these blobs in deploy-scripts) still emits only three values (Blake hash, length, observable hash). Any upgrade/genesis path that passes the existing encoded data will now revert on the abi.decode before calling the deployer, breaking ZKsync OS force deployments.

Useful? React with 👍 / 👎.

Base automatically changed from zksync-os-dev to draft-v31 January 7, 2026 14:43
@kelemeno
Copy link
Contributor Author

Closing in favour of Raid's PR

@kelemeno kelemeno closed this Jan 20, 2026
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