From 84bc7ef73a8332888152ab89b0800e04c3559607 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Tue, 21 Jan 2025 15:56:07 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Align=20with=20OZ=20Implem?= =?UTF-8?q?entation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- src/snekmate/utils/pausable.vy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/snekmate/utils/pausable.vy b/src/snekmate/utils/pausable.vy index ca636a12..10300e00 100644 --- a/src/snekmate/utils/pausable.vy +++ b/src/snekmate/utils/pausable.vy @@ -75,7 +75,7 @@ def _pause(): @notice This is an `internal` function without access restriction. """ - self._assert_unpaused() + self._require_not_paused() self.paused = True log Paused(account=msg.sender) @@ -88,13 +88,13 @@ def _unpause(): @notice This is an `internal` function without access restriction. """ - self._assert_paused() + self._require_paused() self.paused = False log Unpaused(account=msg.sender) @internal -def _assert_unpaused(): +def _require_not_paused(): """ @dev Throws if the contract is paused. """ @@ -102,7 +102,7 @@ def _assert_unpaused(): @internal -def _assert_paused(): +def _require_paused(): """ @dev Throws if the contract is not paused. """