Pausing Smart Contracts
A Smart Contract cannot be "paused" on a protocol-level on the Ethereum Blockchain. But we can add conditional logic to our to pause it.
add is_paused as a public state variable.
add function setPaused() with require
only deployer can update paused state.
add require(is_paused) check to withdraw money
if paused == false, function is active.
Last updated