You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more details on managing contract data TTLs in Soroban, refer to the docs for `TTL <https://developers.stellar.org/docs/build/smart-contracts/getting-started/storing-data#managing-contract-data-ttls-with-extend_ttl>`_.
The extendInstanceTtl() function extends the time-to-live (TTL) of contract instance storage.
701
+
702
+
If the TTL for the current contract instance and code (if applicable) is below threshold ledgers, this function extends ``live_until_ledger_seq`` such that TTL equals ``extend_to``.
703
+
704
+
.. note:: This is a global function, not a method, and is only available on the Soroban target
705
+
706
+
.. code-block:: solidity
707
+
708
+
/// Extends the TTL for the contract instance storage to 10000 ledgers
709
+
/// if the current TTL is smaller than 2000 ledgers
710
+
function extendInstanceTtl() public view returns (int64) {
0 commit comments