Skip to content

fix(ffi): guard empty receipt arrays - #384

Merged
Andiveli merged 1 commit into
fix/ffi-jid-ownershipfrom
fix/ffi-receipt-empty-results
Aug 28, 2026
Merged

fix(ffi): guard empty receipt arrays#384
Andiveli merged 1 commit into
fix/ffi-jid-ownershipfrom
fix/ffi-receipt-empty-results

Conversation

@Andiveli

Copy link
Copy Markdown
Owner

Closes #381

Summary

  • encode empty receipt arrays as a coherent nil/zero ABI pair
  • decode empty arrays without constructing a Rust slice from a null pointer
  • preserve non-empty callback lifetime and ABI layout

Chain context

#377 fix/ffi-jid-ownership
  └── 📍 fix/ffi-receipt-empty-results

Base: fix/ffi-jid-ownership
Depends on: #377
Follow-up: combined beta validation after both PRs pass.

Test plan

  • Focused and full Go tests passed
  • Rust bridge tests — 27 passed
  • Diff checks passed

@Andiveli Andiveli added the type:bug Bug fix label Aug 28, 2026
@Andiveli
Andiveli merged commit a804c0b into fix/ffi-jid-ownership Aug 28, 2026
1 check passed
@Andiveli
Andiveli deleted the fix/ffi-receipt-empty-results branch August 31, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant