Skip to content

Fix/serde zkapp uri token symbol string parsing + pull upstream#192

Merged
scaraven merged 5 commits intomainfrom
serde-zkapp-token-symbol-zkappuri-parsing
Apr 6, 2026
Merged

Fix/serde zkapp uri token symbol string parsing + pull upstream#192
scaraven merged 5 commits intomainfrom
serde-zkapp-token-symbol-zkappuri-parsing

Conversation

@scaraven
Copy link
Copy Markdown
Member

@scaraven scaraven commented Apr 6, 2026

See #190 for the full PR information. I've had to copy the PR to accommodate the NetworkID updates for Mesa compatibility and some minor formatting changes. Closes #185

jk89 and others added 4 commits April 6, 2026 12:04
…o parse when set to JSON strings as produced by o1js, because the derived serde on Vec<u8> expects a JSON byte array instead. Added test for the real deploy-v0.0.4-unsigned.json fixture which fails to parse due to the zkappUri string field, a minimal reproduction for zkappUri as a string, a test proving the incorrect 32-character ZkappUri length limit rejects real URLs, and a minimal reproduction for tokenSymbol as a string. All four tests currently fail documenting the limitation.
…ol to accept JSON strings as produced by o1js, removed the incorrect 32-character ZkappUri length limit, and fixed from_str_network to surface actual serde errors instead of swallowing them. Resolves all four failing tests from the previous commit.
@scaraven scaraven changed the title Serde zkapp token symbol zkappuri parsing Fix/serde zkapp uri token symbol string parsing + pull upstream Apr 6, 2026
@scaraven scaraven requested a review from jCabala April 6, 2026 16:03
@scaraven scaraven merged commit d399705 into main Apr 6, 2026
10 checks passed
@scaraven scaraven deleted the serde-zkapp-token-symbol-zkappuri-parsing branch April 6, 2026 16:06
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.

# Cannot parse o1js ZkApp transactions due to incorrect serde for ZkappUri and TokenSymbol

2 participants