Skip to content

Commit

Permalink
chore(contracts): The getAttester function should only be accessible …
Browse files Browse the repository at this point in the history
…internally (#827)
  • Loading branch information
satyajeetkolhapure authored Nov 26, 2024
1 parent eac2e44 commit 7f57adb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 331 deletions.
2 changes: 1 addition & 1 deletion contracts/src/abstracts/AbstractPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ abstract contract AbstractPortal is IPortal {
* @notice Defines the address of the entity issuing attestations to the subject
* @dev We strongly encourage a reflection when overriding this rule: who should be set as the attester?
*/
function getAttester() public view virtual returns (address) {
function getAttester() internal view virtual returns (address) {
return msg.sender;
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/src/abstracts/AbstractPortalV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ abstract contract AbstractPortalV2 is IPortal {
* @notice Defines the address of the entity issuing attestations to the subject
* @dev We strongly encourage a reflection when overriding this rule: who should be set as the attester?
*/
function getAttester() public view virtual returns (address) {
function getAttester() internal view virtual returns (address) {
return msg.sender;
}

Expand Down
6 changes: 0 additions & 6 deletions contracts/src/interfaces/IPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@ interface IPortal is IERC165 {
* @return The list of modules addresses linked to the Portal
*/
function getModules() external view returns (address[] memory);

/**
* @notice Defines the address of the entity issuing attestations to the subject
* @dev We strongly encourage a reflection when implementing this method
*/
function getAttester() external view returns (address);
}
188 changes: 0 additions & 188 deletions contracts/src/stdlib/IndexerModule.sol

This file was deleted.

135 changes: 0 additions & 135 deletions contracts/test/stdlib/IndexerModule.t.sol

This file was deleted.

0 comments on commit 7f57adb

Please sign in to comment.