@@ -17,7 +17,7 @@ contract ContractPublisher is IContractPublisher, ERC2771Context, AccessControlE
1717 State variables
1818 //////////////////////////////////////////////////////////////*/
1919
20- /// @dev Whether the registry is paused.
20+ /// @notice Whether the contract publisher is paused.
2121 bool public isPaused;
2222
2323 /*///////////////////////////////////////////////////////////////
@@ -102,7 +102,7 @@ contract ContractPublisher is IContractPublisher, ERC2771Context, AccessControlE
102102 Publish logic
103103 //////////////////////////////////////////////////////////////*/
104104
105- /// @notice Let's an account publish a contract. The account must be approved by the publisher, or be the publisher.
105+ /// @notice Let's an account publish a contract.
106106 function publishContract (
107107 address _publisher ,
108108 string memory _contractId ,
@@ -135,7 +135,7 @@ contract ContractPublisher is IContractPublisher, ERC2771Context, AccessControlE
135135 emit ContractPublished (_msgSender (), _publisher, publishedContract);
136136 }
137137
138- /// @notice Lets an account unpublish a contract and all its versions. The account must be approved by the publisher, or be the publisher .
138+ /// @notice Lets a publisher unpublish a contract and all its versions.
139139 function unpublishContract (address _publisher , string memory _contractId )
140140 external
141141 onlyPublisher (_publisher)
@@ -185,10 +185,12 @@ contract ContractPublisher is IContractPublisher, ERC2771Context, AccessControlE
185185 emit Paused (_pause);
186186 }
187187
188+ /// @dev ERC2771Context overrides
188189 function _msgSender () internal view virtual override (Context, ERC2771Context ) returns (address sender ) {
189190 return ERC2771Context ._msgSender ();
190191 }
191192
193+ /// @dev ERC2771Context overrides
192194 function _msgData () internal view virtual override (Context, ERC2771Context ) returns (bytes calldata ) {
193195 return ERC2771Context ._msgData ();
194196 }
0 commit comments