pub fn _pause() 
Expand description

Unconditionally sets the contract to the paused state.

Number of Storage Accesses

  • Writes: 1

Examples

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

fn foo() {
    _pause();
    assert(_is_paused());
}