Skip to content

Commit

Permalink
feat: setter for enabling or disabling fallback signer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed Aug 7, 2024
1 parent c9eed09 commit 11c90e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/account/UpgradeableModularAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ contract UpgradeableModularAccount is
_storage.fallbackSigner = fallbackSigner;
}

function setFallbackSignerEnabled(bool enabled) external wrapNativeFunction {
AccountStorage storage _storage = getAccountStorage();
_storage.fallbackSignerDisabled = !enabled;
// TODO: event
}

/// @inheritdoc IModuleManager
/// @notice May be validated by a global validation.
function installValidation(
Expand Down

0 comments on commit 11c90e5

Please sign in to comment.