Skip to content

Releases: MaxflowO2/ERC2981

v2.1.3 ERC721BatchTransfer

03 Jan 02:55
Compare
Choose a tag to compare

in the token/ERC721/extensions directory, pulled batch transfers from ERC1155 and re-wrote them for use in ERC721

v2.1.1 ERC165Storage removal

31 Dec 22:44
Compare
Choose a tag to compare

Changes:

Removal of ERC165Storage to improve gas storage, now calling

// @notice solidity required override for supportsInterface(bytes4)
// @param bytes4 interfaceId - bytes4 id per interface or contract
//  calculated by ERC165 standards automatically
function supportsInterface(bytes4 interfaceId) public pure override(ERC721, IERC165) returns (bool) {
  return (
    interfaceId == type(IERC721).interfaceId ||
    interfaceId == type(ERC2981Collection).interfaceId  ||
    interfaceId == type(BAYC).interfaceId  ||
    interfaceId == type(ContractURI).interfaceId  ||
    interfaceId == type(IMAX721).interfaceId  ||
    interfaceId == type(IMAX721Whitelist).interfaceId ||
    interfaceId == type(ReentrancyGuard).interfaceId ||
    interfaceId == type(Whitelist).interfaceId ||
    interfaceId == type(PaymentSplitter).interfaceId ||
    interfaceId == type(DeveloperV2).interfaceId ||
    interfaceId == type(Ownable).interfaceId
  );
}

Also changed msg.sender to _msgSender() inherited from Context.sol from OpenZeppelin 4.4.0

v2.1

29 Dec 20:21
Compare
Choose a tag to compare

v2.1 post audit ERC2981/ERC721 combo