Skip to content

v2.1.1 ERC165Storage removal

Compare
Choose a tag to compare
@MaxflowO2 MaxflowO2 released this 31 Dec 22:44
· 10 commits to master since this release

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