Skip to main content

DA.Assert

Module Snapshot

Lifecycle

Stable.

Notices

Status: active Introduced in: 3.4.9 Removed in: - Warnings: 0 Deprecations: 0 Deprecated since: -

Functions

assertEq

Check two values for equality. If they’re not equal, fail with a message.

===

Infix version of assertEq.

assertNotEq

Check two values for inequality. If they’re equal, fail with a message.

=/=

Infix version of assertNotEq.

assertAfterMsg

Check whether the given time is in the future. If it’s not, abort with a message.

assertBeforeMsg

Check whether the given time is in the past. If it’s not, abort with a message.

assertWithinDeadline

Check whether the ledger time of the transaction is strictly before the given deadline. If it’s not, abort with a message.

assertDeadlineExceeded

Check whether the ledger time of the transaction is at or after the given deadline. If it’s not, abort with a message.