Skip to content

fix(contracts): recurse hasIdFields into nested structs/arrays - #30

Open
lurrielcode wants to merge 2 commits into
qubic:mainfrom
lurrielcode:fix/transfer-share-management-rights-issuer
Open

fix(contracts): recurse hasIdFields into nested structs/arrays#30
lurrielcode wants to merge 2 commits into
qubic:mainfrom
lurrielcode:fix/transfer-share-management-rights-issuer

Conversation

@lurrielcode

Copy link
Copy Markdown

Summary

  • Fix hasIdFields in the contracts generator to recurse into nested structs and arrays of structs, so identity converters are required when an id appears only in nested fields.
  • Regenerate affected contract bindings and update the QX transfer-share-management-rights test to assert nested Asset.issuer encoding via identityToPublicKey.

Test plan

  • Run contracts package tests (contracts.test.ts), especially buildQxTransferShareManagementRightsInput encodes nested Asset.issuer via identityToPublicKey
  • Spot-check a regenerated build*TransferShareManagementRightsInput / nested decode helper that previously used a stub converter now requires a real identity converter

Made with Cursor

lurrielcode and others added 2 commits August 12, 2026 20:58
Fix hasIdFields to recurse into nested structs/arrays so identity
converters are required when id appears only in nested fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@alez04
alez04 self-requested a review August 13, 2026 23:02
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