-
Notifications
You must be signed in to change notification settings - Fork 443
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 Hash trait to Selector struct #2149
Conversation
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Mon Mar 11 16:19:30 CET 2024 |
Was the intention to have this only available for testing contracts in |
At least for my use case it is. Im using the ink_metadata crate directly |
Summary
Closes #_
cargo-contract
orpallet-contracts
?Add Hash trait to Selector struct
Description
With this implementation, you can now use Selector as a key in hash maps or hash sets. The hash method hashes the underlying bytes of the selector array, making it suitable for hashing.
Checklist before requesting a review
CHANGELOG.md