-
Notifications
You must be signed in to change notification settings - Fork 969
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
Closes #161: Add EIP-165 support in DefaultCallbackHandler #285
Closes #161: Add EIP-165 support in DefaultCallbackHandler #285
Conversation
{ | ||
return interfaceId == type(ERC1155TokenReceiver).interfaceId | ||
|| interfaceId == type(ERC721TokenReceiver).interfaceId | ||
|| interfaceId == type(IERC165).interfaceId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess this is the same that interfaceId == this.supportsInterface.selector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so yes ... I just went with this as it was more in line we the statements above.
returns (bool) | ||
{ | ||
return interfaceId == type(ERC1155TokenReceiver).interfaceId | ||
|| interfaceId == type(ERC721TokenReceiver).interfaceId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know interfaceId
was introduced in Solidity some months ago, nice
…tibility Safe v1.0.0 and v1.1.1 compatibility
Closes #161