pub fn require_not_paused() 
Expand description

Requires that the contract is in the unpaused state.

Reverts

  • When the contract is paused.

Number of Storage Accesses

  • Reads: 1

Examples

use sway_libs::pausable::{_unpause, require_not_paused};

fn foo() {
    _unpause();
    require_not_paused();
    // Only reachable when unpaused
}