Skip to content

[tontester] Use unmangled name for JSON fields in TL objects#2113

Open
DanShaders wants to merge 1 commit intoton-blockchain:testnetfrom
DanShaders:fix-tl-generator
Open

[tontester] Use unmangled name for JSON fields in TL objects#2113
DanShaders wants to merge 1 commit intoton-blockchain:testnetfrom
DanShaders:fix-tl-generator

Conversation

@DanShaders
Copy link
Collaborator

No description provided.

@github-actions
Copy link

Issue found in commit 0c7c734:

  • JSON key mismatch for mangled base-type fields: to_dict still uses arg.name for base types, while from_dict now reads arg.unmangled_name. For fields like from, bytes, self, list, serializing will emit from_ but deserializing expects from, breaking round‑trips and external JSON compatibility. Use arg.unmangled_name for keys in the base‑type branch too. File: test/tontester/src/tl/generator/generators/tlobject.py:152

@DanShaders DanShaders marked this pull request as draft January 31, 2026 02:49
@DanShaders DanShaders marked this pull request as ready for review February 1, 2026 18:00
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