Module assert

Source

Functionsยง

assert_description_length
Validates the length of a description field in entities such as documents or assets.
assert_max_memory_size
assert_timestampDeprecated
Asserts the validity of a given user timestamp against the current timestamp. e.g. the timestamp of an existing entity persisted in a smart contract.
assert_version
Asserts the validity of a given user version against the required version. This function checks if the provided user version matches the current system version. It is designed to ensure that operations relying on version numbers are executed with the correct versions to prevent issues with compatibility or outdated requests.