Skip to content

Fix State[] field access for array fields#111

Merged
someone235 merged 1 commit intokaspanet:covpp-reset2from
Manyfestation:fix-state-array-field-access
Apr 26, 2026
Merged

Fix State[] field access for array fields#111
someone235 merged 1 commit intokaspanet:covpp-reset2from
Manyfestation:fix-state-array-field-access

Conversation

@Manyfestation
Copy link
Copy Markdown
Collaborator

Fixes an issue where State[] field access for fields that are themselves arrays returned:

ERROR: unsupported feature: array element type must have known size

This was due to incorrect order when the debugger flattens State[] into hidden bindings.

The fix is to append outer dimension instead of inserting at 0 index, which results in correct bidings -

  • int num → int[]
  • byte[32] anArray → byte[32][]

@someone235 someone235 merged commit efd4293 into kaspanet:covpp-reset2 Apr 26, 2026
4 checks passed
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.

2 participants