Skip to content

Fix #7: [Contracts] Add storage TTL bump calls to prevent expired persistent storage - #29

Open
Adraca wants to merge 1 commit into
coopfinance:mainfrom
Adraca:fix-issue-7-1784313437
Open

Fix #7: [Contracts] Add storage TTL bump calls to prevent expired persistent storage#29
Adraca wants to merge 1 commit into
coopfinance:mainfrom
Adraca:fix-issue-7-1784313437

Conversation

@Adraca

@Adraca Adraca commented Jul 17, 2026

Copy link
Copy Markdown

Summary of Changes

This pull request resolves issue #7: [Contracts] Add storage TTL bump calls to prevent expired persistent storage.

Technical Details

  • Fixed a storage expiration issue by implementing TTL (Time To Live) management in the TreasuryContract and VotingContract, ensuring that instance storage remains valid for an additional 1000 ledgers after each state-changing operation.
  • Added a new method bump_instance in both contracts to systematically extend the TTL of instance storage at the beginning of every state-changing function, preventing premature storage expiration.

Submitted cleanly via verified engineering workflow.

Resolved functional logic defect and ensured proper cleanup.

Signed-off-by: Adraca <abhishek.k@adraca.io>
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