Skip to content

Conversation

@marshacb
Copy link
Collaborator

@marshacb marshacb commented Feb 10, 2026

Motivation

Private transfer integration tests were failing when attempting to use records created via transfer_public_to_private.

Two bugs were identified:

RecordPlaintext.owner() only handled public owner visibility:

  • Records created by transfer_public_to_private store the owner with private visibility. The owner() method returned "Record is not public" instead of extracting the address from the decrypted plaintext.

Property name mismatch in NetworkRecordProvider:

  • findCreditsRecords() returned camelCase properties (recordPlaintext, programName) but OwnedRecord type and consumers expected snake_case (record_plaintext, program_name).

These issues prevented the SDK from finding and using shielded records for private transfers.

Test Plan

  • Added 2 unit tests for private owner extraction
  • Verified tests fail without fix, pass with fix
  • Ran transfer-private integration test. Confirmed transfer-private test runs completely

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