Skip to content

Commit

Permalink
chore: Add fallback and receive functions to DefaultCallbackHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
imduchuyyy committed Jun 11, 2024
1 parent 4dbfb68 commit 30b2e07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/DefaultCallbackHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ contract DefaultCallbackHandler is IERC721Receiver, IERC1155Receiver, IERC777Rec
return interfaceId == type(IERC1155Receiver).interfaceId || interfaceId == type(IERC721Receiver).interfaceId
|| interfaceId == type(IERC165).interfaceId || super.supportsInterface(interfaceId);
}

fallback() external payable {}
receive() external payable {}
}

0 comments on commit 30b2e07

Please sign in to comment.