Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [spearbit-97] Prevent createAccount() user error #16

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

howydev
Copy link
Collaborator

@howydev howydev commented Dec 12, 2023

Motivation

Factory's getAddress does not revert on invalid inputs to MultiOwnerPlugin which might potentially be a footgun for users/devs

Solution

Add these checks into getAddress in the 2 factories

@howydev howydev requested a review from jaypaik December 12, 2023 20:02
src/factory/MultiOwnerMSCAFactory.sol Show resolved Hide resolved
src/factory/MultiOwnerMSCAFactory.sol Outdated Show resolved Hide resolved
src/factory/MultiOwnerTokenReceiverMSCAFactory.sol Outdated Show resolved Hide resolved
@howydev howydev requested a review from adam-alchemy December 14, 2023 00:51
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. I generally lean towards not copy/pasting code whenever possible, since it opens up the possibility of drift when one is changed but the other isn't. In this case it seems relatively small so I'm OK with going forward but we should revisit this in future versions.

@howydev howydev merged commit e376c3f into main Dec 14, 2023
3 checks passed
@howydev howydev deleted the howy/fix-97 branch December 14, 2023 21:57
@howydev howydev restored the howy/fix-97 branch December 21, 2023 22:02
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.

3 participants