Skip to content

Conversation

@winor30
Copy link
Contributor

@winor30 winor30 commented Nov 22, 2023

Motivation

Refactored SingleOwnerPlugin to use IPluginManager and UUPSUpgradeable instead of UpgradeableModularAccount. This change aims to improve the plugin's generality.
Also it is possible to use SingleOwnerPlugin from any ERC6900 contract.

Solution

Updated imports and adjusted execution selectors in the plugin's manifest to align with the more abstract interfaces of IPluginManager and UUPSUpgradeable.

- Refactor `SingleOwnerPlugin.sol` to use `IPluginManager` interface and `UUPSUpgradeable` for plugin management, enhancing upgradeability and contract modularity.
- Update execution selectors in `installPlugin` and `uninstallPlugin` methods to align with new interface.
Copy link
Contributor

@adam-alchemy adam-alchemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for refactoring this.

@adam-alchemy adam-alchemy merged commit 98bc1d7 into erc6900:main Nov 28, 2023
@winor30 winor30 deleted the fix-single-owner-plugin-dependency branch November 28, 2023 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants