-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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 ERC165Checker.getSupportedInterfaces #2469
Add ERC165Checker.getSupportedInterfaces #2469
Conversation
…erfaces Change visibility of the getSupportedInterfaces function on the ERC165Checker library
…conspyrosy/openzeppelin-contracts into feature/ERC165-get-supported-interfaces
Thank you @conspyrosy for your PR. We really appreciate feeback from the community, and we appreciate it even more when the community members contributes to the codebase with the feature they see as most relevant to them. I do believe that, by default, newly allocated arrays should contain 0 (@frangio can you confirme this?), which in boolean terms means false. If so the getSupportedInterface can be shorten to:
|
Thanks @conspyrosy!
I'm pretty sure this is the case but I couldn't find it in the documentation for Solidity. I've asked the team to confirm. |
The reply from the Solidity team was:
In summary, yes we can just initialize a new array. |
I've only just got round to checking on this, looks like some changes have been made which look good 👍 Let me know if this needs anything from me. |
Hi @conspyrosy, no problem. Sorry that we jumped in, we want to ship this in the next release. 🙂 |
Fixes #2429
See the issue, explained there.
Tests work. Linter giving me line errors in windows