feat(aid_escrow): add optional receipt_hash field to claim/disburseme… - #820
Open
Richardkingz2019 wants to merge 3 commits into
Open
feat(aid_escrow): add optional receipt_hash field to claim/disburseme…#820Richardkingz2019 wants to merge 3 commits into
Richardkingz2019 wants to merge 3 commits into
Conversation
…nt events Add an optional receipt_hash field to PackageClaimed and PackageDisbursed events to anchor off-chain receipts. The receipt hash is read from package metadata key 'receipt_hash' and defaults to an empty string when absent, ensuring full backward compatibility. Changes: - Add receipt_hash: String field to PackageClaimed and PackageDisbursed event structs - Add receipt_hash_from_metadata() helper to extract the hash from package metadata - Wire receipt_hash through finalize_claim() and disburse() to events - Update test snapshots to include the new field - Add unit tests for both presence and absence of receipt_hash in claim and disbursement events Closes Pulsefy#568
|
@Richardkingz2019 is attempting to deploy a commit to the Cedarich's projects Team on Vercel. A member of the Team first needs to authorize it. |
… dead_code in events tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…nt events
Add an optional receipt_hash field to PackageClaimed and PackageDisbursed events to anchor off-chain receipts. The receipt hash is read from package metadata key 'receipt_hash' and defaults to an empty string when absent, ensuring full backward compatibility.
Changes:
Closes #568
Closes #568