From 5d739e99844de716aad075ee114aa3fd23cc3a1b 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 dc81e3cd..3e2e153c 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(