Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Oct 8, 2023
1 parent 635c5e0 commit f840566
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
8 changes: 4 additions & 4 deletions contracts/factory/ModuleProxyFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ contract ModuleProxyFactory {
/// @notice Initialization failed.
error FailedInitialization();

function createProxy(address target, bytes32 salt)
internal
returns (address result)
{
function createProxy(
address target,
bytes32 salt
) internal returns (address result) {
if (address(target) == address(0)) revert ZeroAddress(target);
if (address(target).code.length == 0) revert TargetHasNoCode(target);
bytes memory deployment = abi.encodePacked(
Expand Down
9 changes: 3 additions & 6 deletions contracts/guard/BaseGuard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "../interfaces/IGuard.sol";

abstract contract BaseGuard is IERC165 {
function supportsInterface(bytes4 interfaceId)
external
pure
override
returns (bool)
{
function supportsInterface(
bytes4 interfaceId
) external pure override returns (bool) {
return
interfaceId == type(IGuard).interfaceId || // 0xe6d7a83a
interfaceId == type(IERC165).interfaceId; // 0x01ffc9a7
Expand Down
8 changes: 4 additions & 4 deletions contracts/interfaces/IAvatar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ interface IAvatar {
/// @param pageSize Maximum number of modules that should be returned.
/// @return array Array of modules.
/// @return next Start of the next page.
function getModulesPaginated(address start, uint256 pageSize)
external
view
returns (address[] memory array, address next);
function getModulesPaginated(
address start,
uint256 pageSize
) external view returns (address[] memory array, address next);
}
9 changes: 4 additions & 5 deletions contracts/test/TestAvatar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ contract TestAvatar {
else (success, returnData) = to.call{value: value}(data);
}

function getModulesPaginated(address, uint256 pageSize)
external
view
returns (address[] memory array, address next)
{
function getModulesPaginated(
address,
uint256 pageSize
) external view returns (address[] memory array, address next) {
// Init array with max page size
array = new address[](pageSize);

Expand Down

0 comments on commit f840566

Please sign in to comment.