Skip to content

Comments

feat: update ERC721ReadOnly to work with OZ v5#43

Open
djdabs wants to merge 4 commits intomainfrom
update-OZ-v5
Open

feat: update ERC721ReadOnly to work with OZ v5#43
djdabs wants to merge 4 commits intomainfrom
update-OZ-v5

Conversation

@djdabs
Copy link
Collaborator

@djdabs djdabs commented Apr 23, 2025

Latest version of ERC721.sol from OpenZeppelin does not have an _exists() function anymore and the safeTransferFrom with three vars is not virtual.

In addition, keccak256().toEthSignedMessageHash() is longer packaged into EDCSA and requires importing an additional helper MessageHashUtils.sol

This PR updates the following files to be compatible with OZ v5.0+

  • v2
    • ERC721ReadOnly.sol
  • v1
    • ERC721ReadOnly.sol
    • PBTRandom.sol
    • PBTSimple.sol

It also updates the openzeppelin submodule to latest version.

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.

1 participant