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

Move ERC721 and ERC1155 receiver checks to dedicate libraries #4845

Merged
merged 11 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc
  • Loading branch information
Amxx committed Jan 18, 2024
commit f372e76739ffb1ae5778e1dccdb1b19ceccc7bd1
3 changes: 2 additions & 1 deletion contracts/token/ERC1155/utils/ERC1155Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {IERC1155Receiver} from "../IERC1155Receiver.sol";
import {IERC1155Errors} from "../../../interfaces/draft-IERC6093.sol";

/**
* @title ERC1155Utils
* @dev Implementation of the ERC-1155 acceptance checks used in safe transfers.
* See https://eips.ethereum.org/EIPS/eip-1155
*/
library ERC1155Utils {
/**
Expand Down
3 changes: 2 additions & 1 deletion contracts/token/ERC721/utils/ERC721Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {IERC721Receiver} from "../IERC721Receiver.sol";
import {IERC721Errors} from "../../../interfaces/draft-IERC6093.sol";

/**
* @title ERC721Utils
* @dev Implementation of the ERC-721 acceptance checks used in safe transfers.
* See https://eips.ethereum.org/EIPS/eip-721
*/
library ERC721Utils {
/**
Expand Down