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

Closes #161: Add EIP-165 support in DefaultCallbackHandler #285

Merged

Conversation

rmeissner
Copy link
Member

Closes #161

  • Add EIP-165 handling for ERC-721
  • Add EIP-165 handling for ERC-1155

@rmeissner rmeissner assigned Uxio0 and unassigned Uxio0 Mar 24, 2021
@rmeissner rmeissner requested a review from Uxio0 March 24, 2021 10:04
{
return interfaceId == type(ERC1155TokenReceiver).interfaceId
|| interfaceId == type(ERC721TokenReceiver).interfaceId
|| interfaceId == type(IERC165).interfaceId;
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

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

@rmeissner rmeissner merged commit b4ac134 into development Mar 24, 2021
@rmeissner rmeissner deleted the feature/issue_161_erc_165_fallback_handler_support branch March 24, 2021 14:19
Saw-mon-and-Natalie pushed a commit to Saw-mon-and-Natalie/safe-contracts that referenced this pull request Nov 1, 2023
fdarian pushed a commit to fdarian/safe-contracts that referenced this pull request Jan 14, 2024
…tibility

Safe v1.0.0 and v1.1.1 compatibility
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.

EIP-1155 required EIP-165 support
2 participants