Function casper_rust_wasm_sdk::helpers::get_ttl_or_default

source ·
pub fn get_ttl_or_default(ttl: Option<&str>) -> String
Expand description

Gets the time to live (TTL) value or returns the default value if not provided.

§Arguments

  • ttl - An optional TTL value as a string.

§Returns

A string containing the TTL value or the default TTL if not provided.