Skip to content

Add integration test for TTL extension not firing when creator storage TTL is comfortably above the threshold #649

Description

@Chucks1093

Summary

The TTL extension should be a no-op when the creator's storage has a healthy TTL. An integration test should confirm no TTL extension event is emitted during a buy when the creator's TTL is well above the minimum threshold.

Scope

  • Deploy the contract and create a creator entry with a TTL set far above the extension threshold
  • Execute a buy transaction
  • Extract all events from the transaction result
  • Assert no TTL extension event is present among the emitted events
  • Assert the buy event is still present (the buy itself succeeded)

Acceptance Criteria

  • No TTL extension event emitted when TTL is above threshold
  • Buy event present confirming the transaction succeeded
  • Creator storage TTL unchanged after the buy
  • Test uses a TTL value at least 2x the extension threshold

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions