Skip to content

Commit 33e7d08

Browse files
committed
fix doc
1 parent eba819a commit 33e7d08

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/shutter-service/ShutterRegistry.sol

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import "openzeppelin/contracts/access/Ownable.sol";
99
* Inherits from OpenZeppelin's Ownable contract to enable ownership-based access control.
1010
*/
1111
contract ShutterRegistry is Ownable {
12-
1312
// Custom error for when an identity is already registered.
1413
error AlreadyRegistered();
1514

@@ -24,6 +23,7 @@ contract ShutterRegistry is Ownable {
2423

2524
/**
2625
* @dev Emitted when a new identity is successfully registered.
26+
* @param eon The eon associated with the identity.
2727
* @param identityPrefix The raw prefix input used to derive the registered identity hash.
2828
* @param sender The address of the account that performed the registration.
2929
* @param timestamp The timestamp associated with the registered identity.
@@ -50,9 +50,15 @@ contract ShutterRegistry is Ownable {
5050
* - The identity must not already be registered.
5151
* - The provided timestamp must not be in the past.
5252
*/
53-
function register(uint64 eon, bytes32 identityPrefix, uint64 timestamp) external {
53+
function register(
54+
uint64 eon,
55+
bytes32 identityPrefix,
56+
uint64 timestamp
57+
) external {
5458
// Generate the identity hash from the provided prefix and the sender's address.
55-
bytes32 identity = keccak256(abi.encodePacked(identityPrefix, msg.sender));
59+
bytes32 identity = keccak256(
60+
abi.encodePacked(identityPrefix, msg.sender)
61+
);
5662

5763
// Ensure the identity is not already registered.
5864
require(registrations[identity] == uint64(0), AlreadyRegistered());
@@ -64,11 +70,6 @@ contract ShutterRegistry is Ownable {
6470
registrations[identity] = timestamp;
6571

6672
// Emit the IdentityRegistered event.
67-
emit IdentityRegistered(
68-
eon,
69-
identityPrefix,
70-
msg.sender,
71-
timestamp
72-
);
73+
emit IdentityRegistered(eon, identityPrefix, msg.sender, timestamp);
7374
}
7475
}

0 commit comments

Comments
 (0)