Skip to content
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

fix(artifacts:zk): serialize byteecode without prefix #44

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

Karrq
Copy link

@Karrq Karrq commented Nov 25, 2024

With #35 an accidental change was introduced which serialized bytecode with the 0x prefix where before it was stripped.
This PR reintroduces the stripping behavior by ensuring the serialization happens thru alloy_primitives::hex::encode first

@elfedy
Copy link

elfedy commented Nov 25, 2024

Is it worth it to add a test that deserialization is what we expect?

@Karrq
Copy link
Author

Karrq commented Nov 25, 2024

Is it worth it to add a test that deserialization is what we expect?

Added such test, tried to keep it simple

@Karrq Karrq merged commit a17fbc0 into zksync-v0.11.6 Nov 25, 2024
4 checks passed
@Karrq Karrq deleted the fix/prefixed-bytecode branch November 25, 2024 20:29
Karrq added a commit that referenced this pull request Nov 26, 2024
feat(zk): mark bytecode as unlinked
refactor(zk): get output from `eravm` object
feat: retain pre-1.5.7 zksolc compatibility
test(artifact:zk): unprefixed bytecode test
Karrq added a commit that referenced this pull request Nov 26, 2024
* feat: add zksolc support

* fix: codeowner change (#32,#34)

* feat: zksolc v1.5.7 support (#35)

* feat: zksolc 1.5.7 support

* chore: update version constants

* feat: Support error / warning suppression in zksolc (#33)

feat: add FromStr to ZkSolcWarnings and ZkSolcErrors (#37)

* fix: add back skip filter over avoid-contracts

* feat(zk): properly mark unlinked contract (#40,#41,#43,#44)

feat(zk): mark bytecode as unlinked
refactor(zk): get output from `eravm` object
feat: retain pre-1.5.7 zksolc compatibility
test(artifact:zk): unprefixed bytecode test

* chore: bump version

* chore: merge conflicts 11.6->12.3

feat(zk): per-source profile & settings
feat(zk): stub our zksolc settings restrictions

* fix(ci): update rust toolchain version

* fix(ci): proper rust toolchain name

* chore: clippy

---------

Co-authored-by: Federico Rodríguez <[email protected]>
Co-authored-by: Tomi Moreno <[email protected]>
Co-authored-by: Alex Ostrovski <[email protected]>
Co-authored-by: Dustin Brickwood <[email protected]>
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.

4 participants