Skip to content

fix(storage): use remove_owner_index and clean up guardian votes in archive_will (#332) - #339

Closed
XueyuanPang-Google wants to merge 1 commit into
SoroWill:mainfrom
XueyuanPang-Google:fix-archive-will-storage-helpers
Closed

fix(storage): use remove_owner_index and clean up guardian votes in archive_will (#332)#339
XueyuanPang-Google wants to merge 1 commit into
SoroWill:mainfrom
XueyuanPang-Google:fix-archive-will-storage-helpers

Conversation

@XueyuanPang-Google

Copy link
Copy Markdown

Summary

Fixes #332 by refactoring archive_will in contracts/will/src/storage.rs to:

  1. Use remove_owner_index instead of an inline open-coded removal loop (which preserves ordering and extends TTL appropriately).
  2. Clean up dangling guardian trigger and cancel votes via reset_guardian_votes and reset_guardian_cancel_votes.

Verification

Aligns archive_will with other lifecycle completion functions.


Payout Address: 0x4DF12f27bEDC11EDEAfa6154A193C65a329388DE

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.

archive_will re-implements owner-index removal instead of reusing remove_owner_index, and skips its TTL bump

2 participants