You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Bricked accounts can occur when uninstalling plug-ins if there is only 1 plug-in installed. For example, using a createAlchemyModularAccountClient will default install multi-owner plugin. If you uninstall this plugin in a single action, the account will no longer have a validation function and will become bricked.
Valid use case: adding on multi-sig functionality to a modular account
Describe the solution you would like
when calling uninstallPlugin actions, enforce that more than 1 plugin is installed, and throw if it's the last plugin
can use getInstalledPlugins().length == 1 for a check
Describe alternatives you have considered
Expose MA action that allows for simple switch from MA with one owner to multi-sig ownership (this will avoid requiring calldata to be encoded manually and can be exposed with account actions instead)
This should be a fast follow to the check for currently installed plugins
Is your feature request related to a problem? Please describe.
Bricked accounts can occur when uninstalling plug-ins if there is only 1 plug-in installed. For example, using a createAlchemyModularAccountClient will default install multi-owner plugin. If you uninstall this plugin in a single action, the account will no longer have a validation function and will become bricked.
Valid use case: adding on multi-sig functionality to a modular account
Describe the solution you would like
Describe alternatives you have considered
Additional context
Related discussion
The text was updated successfully, but these errors were encountered: