Skip to content

Commit 04d98ce

Browse files
committed
Improve revert messages
1 parent c6e8a38 commit 04d98ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

solidity/contracts/KeepRandomBeaconOperator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ contract KeepRandomBeaconOperator is ReentrancyGuard {
155155
modifier onlyServiceContract() {
156156
require(
157157
serviceContracts.contains(msg.sender),
158-
"Caller not authorized contract"
158+
"Caller is not a service contract"
159159
);
160160
_;
161161
}
@@ -234,7 +234,7 @@ contract KeepRandomBeaconOperator is ReentrancyGuard {
234234

235235
// reimbursing a submitter that triggered group selection
236236
(bool success, ) = stakingContract.magpieOf(submitter).call.value(groupSelectionStartFee)("");
237-
require(success, "Grp selection reimbursement fail");
237+
require(success, "Group selection reimbursement failed");
238238
}
239239

240240
function startGroupSelection(uint256 _newEntry, uint256 _payment) internal {

0 commit comments

Comments
 (0)