Skip to content

Commit

Permalink
Addressing the audit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Feb 6, 2024
1 parent 5f27897 commit 2f27d64
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract MemberAccessExecuteCondition is PermissionCondition {
return true;
}

function getSelector(bytes memory _data) public pure returns (bytes4 selector) {
function getSelector(bytes memory _data) internal pure returns (bytes4 selector) {
// Slices are only supported for bytes calldata, not bytes memory
// Bytes memory requires an assembly block
assembly {
Expand All @@ -62,7 +62,7 @@ contract MemberAccessExecuteCondition is PermissionCondition {

function decodeAddRemoveMemberCalldata(
bytes memory _data
) public pure returns (bytes4 sig, address account) {
) internal pure returns (bytes4 sig, address account) {
// Slicing is only supported for bytes calldata, not bytes memory
// Bytes memory requires an assembly block
assembly {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/governance/base/Addresslist.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {CheckpointsUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/
import {_uncheckedAdd, _uncheckedSub} from "@aragon/osx/utils/UncheckedMath.sol";

/// @title Addresslist
/// @author Aragon Association - 2021-2024
/// @author Aragon X - 2021-2024
/// @notice The majority voting implementation using a list of member addresses.
/// @dev This contract inherits from `MajorityVotingBase` and implements the `IMajorityVoting` interface.
abstract contract Addresslist {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/governance/base/IEditors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pragma solidity ^0.8.8;

/// @title IEditors
/// @author Aragon Association - 2024
/// @author Aragon X - 2024
interface IEditors {
/// @notice Emitted when an editors are added to the DAO plugin.
/// @param editors The addresses of the new editors.
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/governance/base/IMembers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pragma solidity ^0.8.8;

/// @title IMembers
/// @author Aragon Association - 2024
/// @author Aragon X - 2024
/// @notice An interface to be implemented by DAO plugins that define membership.
interface IMembers {
/// @notice Emitted when a member is added to the DAO plugin.
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/governance/base/IMultisig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity 0.8.17;
import {IDAO} from "@aragon/osx/core/dao/IDAO.sol";

/// @title IMultisig
/// @author Aragon Association - 2023
/// @author Aragon X - 2023
/// @notice An interface for an on-chain multisig governance plugin in which a proposal passes if X out of Y approvals are met.
interface IMultisig {
/// @notice Approves and, optionally, executes the proposal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {RATIO_BASE, RatioOutOfBounds} from "@aragon/osx/plugins/utils/Ratio.sol"
import {IMajorityVoting} from "@aragon/osx/plugins/governance/majority-voting/IMajorityVoting.sol";

/// @title MajorityVotingBase
/// @author Aragon Association - 2022-2023
/// @author Aragon X - 2022-2023
/// @notice The abstract implementation of majority voting plugins.
/// @notice Adapted to only make use of the required parameters and methods.
///
Expand Down

0 comments on commit 2f27d64

Please sign in to comment.