pub fn require_paused() 
Expand description

Requires that the contract is in the paused state.

Reverts

  • When the contract is not paused.

Number of Storage Accesses

  • Reads: 1

Examples

use sway_libs::pausable::{_pause, require_paused};

fn foo() {
    _pause();
    require_paused();
    // Only reachable when paused
}