Skip to content

Add regression test for TTL extended on creator state after sell as well as buy #502

Description

@Chucks1093

Summary

The Soroban storage TTL extension must fire on both buy and sell, not just buy. A regression test should confirm the TTL is extended after a sell transaction and not only after a buy.

Scope

  • Register a creator and record the initial TTL via get_creator_ttl_remaining
  • Execute a sell and assert the TTL is extended
  • Confirm the TTL after sell matches the configured CREATOR_TTL_LEDGERS constant
  • Assert a failed sell (e.g. insufficient balance) does not extend the TTL

Acceptance Criteria

  • TTL extended after successful sell
  • TTL value after sell matches CREATOR_TTL_LEDGERS
  • Failed sell does not extend TTL

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions