calling pause?
function setPaused(bool _paused) public {
require(msg.sender == owner, "You are not the owner");
paused = _paused;
}
you just need to do something like this: function pause(bool val) public onlyOwner { _paused = val; } and then check if contract is paused
Обсуждают сегодня