Skip to content

Commit a163400

Browse files
committed
Updated RandomBeaconChaosnet contract descriptions
1 parent 1fc246e commit a163400

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

solidity/random-beacon/contracts/RandomBeaconChaosnet.sol

+5-7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ pragma solidity 0.8.17;
1717
import "./api/IRandomBeacon.sol";
1818
import "@openzeppelin/contracts/access/Ownable.sol";
1919

20-
/// @title Keep Random Beacon Chaosnet Stub
21-
/// @notice Keep Random Beacon stub contract that will be used temporarily until
22-
/// the real-world random beacon client implementation is ready.
20+
/// @title Keep Random Beacon Chaosnet
21+
/// @notice A stub contract that will be used temporarily until the real-world
22+
/// random beacon client implementation is ready.
2323
contract RandomBeaconChaosnet is IRandomBeacon, Ownable {
2424
/// @notice Authorized addresses that can request a relay entry.
2525
mapping(address => bool) public authorizedRequesters;
@@ -33,11 +33,9 @@ contract RandomBeaconChaosnet is IRandomBeacon, Ownable {
3333
bool isAuthorized
3434
);
3535

36-
/// @notice Request relay entry stub function sets a callback contract
37-
/// and executes a callback with an arbitrary relay entry number.
36+
/// @notice Executes the callback with an arbitrary relay entry number.
3837
/// @param callbackContract Beacon consumer callback contract - Wallet Registry
39-
/// @dev Despite being a stub function, a requester still needs to be
40-
/// authorized by the owner.
38+
/// @dev The caller must be an authorized requester.
4139
function requestRelayEntry(IRandomBeaconConsumer callbackContract)
4240
external
4341
{

solidity/random-beacon/test/RandomBeaconChaosnet.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ describe("RandomBeaconChaosnet", () => {
159159
.connect(deployer)
160160
.setRequesterAuthorization(requester.address, true)
161161

162-
// Request relay entry twice
162+
// Ensure the initial value of entry stored in the contract is updated
163+
// by requesting a relay entry twice.
163164
await randomBeaconChaosnet
164165
.connect(requester)
165166
.requestRelayEntry(callbackContract.address)

0 commit comments

Comments
 (0)