Skip to content

chore(refund-vault): remove unused DataKey and Error variants (#170) - #260

Merged
wagmiiii merged 2 commits into
accensa:mainfrom
aurorabini:chore/remove-unused-variants
Aug 29, 2026
Merged

chore(refund-vault): remove unused DataKey and Error variants (#170)#260
wagmiiii merged 2 commits into
accensa:mainfrom
aurorabini:chore/remove-unused-variants

Conversation

@aurorabini

Copy link
Copy Markdown
Contributor

Remove Unused Storage Keys and Error Variants

Removes dead code from the contract's published ABI.

RefundVault DataKey (removed)

  • Metadata — never written or read
  • RefundMax — never written or read
  • Admins — never written or read (implied M-of-N scheme that was never built)
  • Threshold — never written or read

Common Error (removed, discriminant gaps preserved)

  • MetadataTooLong = 10 — never returned
  • AmountExceedsMax = 11 — never returned

Discriminant gaps at 10 and 11 are intentional — codes are a published interface
and live contracts exist in deployments/.

ReceiptAnchor checked: all DataKey and Error variants are reachable.

Closes #170

…Max, Admins, Threshold) and error variants (MetadataTooLong, AmountExceedsMax)

Removes four storage key variants that no code reads or writes, and two
#[contracterror] discriminants (codes 10, 11) that are never returned.
Discriminant gaps left intentionally — codes are a published interface.

ReceiptAnchor checked: all DataKey and Error variants are reachable.

Closes accensa#170
@mergekeeper

mergekeeper Bot commented Aug 28, 2026

Copy link
Copy Markdown

MergeKeeper review

Scope: in scope for linked issue #170.
Verdict: clean

The pull request correctly removes the unused DataKey and Error variants from RefundVault and contracts/common while preserving discriminant gaps and checking ReceiptAnchor as requested.

Reviewed commit: 1b341e04a0243b0783c031d1045b73260e7a0ff8.
CI and merge eligibility are checked separately.

@mergekeeper

mergekeeper Bot commented Aug 29, 2026

Copy link
Copy Markdown

MergeKeeper merge status

Status: blocked
PR state: closed
Mergeability: unknown
Checked commit: 1b341e04a0243b0783c031d1045b73260e7a0ff8.

Reason: One or more required CI checks failed.

Failing checks:

Next steps:

  1. Open the failing check details above and fix the reported error.
  2. Run the same checks locally where possible.
  3. Commit and push the fix.
  4. MergeKeeper will automatically re-review the updated PR.

@wagmiiii
wagmiiii merged commit 7f23e06 into accensa:main Aug 29, 2026
1 of 6 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.

RefundVault declares four storage keys and two error variants that no code ever uses

3 participants