Skip to content

Commit

Permalink
fix: address compiler warnings (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed authored Aug 21, 2024
1 parent 236a601 commit 9d3aad7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/account/SemiModularAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ contract SemiModularAccount is UpgradeableModularAccount {

constructor(IEntryPoint anEntryPoint) UpgradeableModularAccount(anEntryPoint) {}

/// Override reverts on initialization, effectively disabling the initializer.
function initializeWithValidation(ValidationConfig, bytes4[] calldata, bytes calldata, bytes[] calldata)
external
override
initializer
{
revert InitializerDisabled();
}

/// @notice Updates the fallback signer address in storage.
/// @dev This function causes the fallback signer getter to ignore the bytecode signer if it is nonzero. It can
/// also be used to revert back to the bytecode signer by setting to zero.
Expand Down Expand Up @@ -83,6 +74,15 @@ contract SemiModularAccount is UpgradeableModularAccount {
return _retrieveFallbackSignerUnchecked(_getSemiModularAccountStorage());
}

/// Override reverts on initialization, effectively disabling the initializer.
function initializeWithValidation(ValidationConfig, bytes4[] calldata, bytes calldata, bytes[] calldata)
external
pure
override
{
revert InitializerDisabled();
}

function _execUserOpValidation(
ModuleEntity userOpValidationFunction,
PackedUserOperation memory userOp,
Expand Down
1 change: 1 addition & 0 deletions test/account/DirectCallsFromModule.t.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

import {UpgradeableModularAccount} from "../../src/account/UpgradeableModularAccount.sol";
Expand Down

0 comments on commit 9d3aad7

Please sign in to comment.