Skip to content

Commit

Permalink
fix: added whenNotPaused in register and getRandomNumber function (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkharvar authored Jul 13, 2022
1 parent ebaf05b commit 6c4ba25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Delegator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 6c4ba25

Please sign in to comment.