Skip to content

Commit

Permalink
Merge pull request #175 from rhinestonewtf/fix/module-already-initial…
Browse files Browse the repository at this point in the history
…ized

changing error for AlreadyInitialized to not conflict with ownable
  • Loading branch information
kopy-kat authored Jan 8, 2025
2 parents 8172971 + 2cf4704 commit 8c221e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/accounts/common/interfaces/IERC7579Module.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ uint256 constant MODULE_TYPE_FALLBACK = 3;
uint256 constant MODULE_TYPE_HOOK = 4;

interface IModule {
error AlreadyInitialized(address smartAccount);
error ModuleAlreadyInitialized(address smartAccount);
error NotInitialized(address smartAccount);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/accounts/kernel/interfaces/IERC7579Modules.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PackedUserOperation } from
"@ERC4337/account-abstraction/contracts/core/UserOperationLib.sol";

interface IModule {
error AlreadyInitialized(address smartAccount);
error ModuleAlreadyInitialized(address smartAccount);
error NotInitialized(address smartAccount);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/module-bases/SchedulingBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract contract SchedulingBase is ERC7579ExecutorBase {
function _onInstall(bytes calldata packedSchedulingData) internal {
address account = msg.sender;
if (isInitialized(account)) {
revert AlreadyInitialized(account);
revert ModuleAlreadyInitialized(account);
}

_createExecution({ orderData: packedSchedulingData });
Expand Down

0 comments on commit 8c221e0

Please sign in to comment.