Skip to content

Conversation

@fangting-alchemy
Copy link
Collaborator

ERC-6900 forbids native function selector collision. This PR adds code to prevent plugins install selectors that are native to the account, ERC-4337 selectors, or selectors should only exist on Plugins.

If the function selector has already been added or matches the selector of a native function, the function SHOULD revert.

@fangting-alchemy fangting-alchemy force-pushed the fangting/native-selector branch from 23e0ba2 to 67f67b8 Compare June 17, 2024 22:54
@fangting-alchemy fangting-alchemy changed the title Add various native function checks for plugin installation Feat: Add various native function checks for plugin installation Jun 17, 2024
@fangting-alchemy fangting-alchemy changed the title Feat: Add various native function checks for plugin installation feat: Add various native function checks for plugin installation Jun 17, 2024
@0xrubes
Copy link

0xrubes commented Jun 18, 2024

Very important, LGTM

Copy link
Contributor

@adamegyed adamegyed 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

@fangting-alchemy fangting-alchemy merged commit 81bef34 into v0.8-develop Jun 18, 2024
@fangting-alchemy fangting-alchemy deleted the fangting/native-selector branch June 18, 2024 23:13
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.

4 participants