From 11c90e51e62b12428cfc9e19da3815b3a034fe9c Mon Sep 17 00:00:00 2001 From: zer0dot Date: Wed, 31 Jul 2024 21:03:58 -0400 Subject: [PATCH] feat: setter for enabling or disabling fallback signer --- src/account/UpgradeableModularAccount.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/account/UpgradeableModularAccount.sol b/src/account/UpgradeableModularAccount.sol index d318cf2b..e2982ae6 100644 --- a/src/account/UpgradeableModularAccount.sol +++ b/src/account/UpgradeableModularAccount.sol @@ -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(