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

Add custom order to presets page #967

Merged

Conversation

ericnordelo
Copy link
Member

Fixes #934

Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

LGTM! Just left a question

Comment on lines +29 to +31
contracts['contracts'] = remove_prefix_from_names(contracts['contracts'])
contracts['contracts'].sort(key=lambda x: x['name'])

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need to sort? I imagine we'll continue to hardcode new entries into KNOWN_ORDER

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point, but I think it doesn't hurt keeping it

@ericnordelo ericnordelo merged commit 9e0e248 into OpenZeppelin:main Apr 11, 2024
6 checks passed
@ericnordelo ericnordelo deleted the feat/update-presets-page-order-#934 branch April 11, 2024 19:52
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.

Update presets page list order
2 participants