From 6c4ba25d4223703fe179561fd4cbba0bbcbe8cdb Mon Sep 17 00:00:00 2001 From: Raj Kharvar Date: Wed, 13 Jul 2022 14:42:46 +0530 Subject: [PATCH] fix: added whenNotPaused in register and getRandomNumber function (#913) --- contracts/Delegator.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Delegator.sol b/contracts/Delegator.sol index 3d1a0a4a..49f7ba21 100644 --- a/contracts/Delegator.sol +++ b/contracts/Delegator.sol @@ -25,7 +25,7 @@ contract Delegator is ACL, StateManager, Pause, IDelegator { } /// @inheritdoc IDelegator - function register() external override returns (bytes32) { + function register() external override whenNotPaused returns (bytes32) { return randomNoManager.register(); } @@ -55,7 +55,7 @@ contract Delegator is ACL, StateManager, Pause, IDelegator { } /// @inheritdoc IDelegator - function getRandomNumber(bytes32 requestId) external view override returns (uint256) { + function getRandomNumber(bytes32 requestId) external view override whenNotPaused returns (uint256) { return randomNoManager.getRandomNumber(requestId); }