-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: upgrade @OpenZeppelin contract packages to latest 5.0.0 versi…
…on (#536) (#541) * update(docs): upgraded OZ packages to latest version 5.0.0 Signed-off-by: Logan Nguyen <[email protected]> * update: removed ERC20SnapshotMock contract Signed-off-by: Logan Nguyen <[email protected]> * update: replaced OZ/SafeMath.sol to OZ/Math.sol Signed-off-by: Logan Nguyen <[email protected]> * fix: replaced _getImplementation() with ERC1967Utils.getImplementation(); Signed-off-by: Logan Nguyen <[email protected]> * fix: passed arguments to the new Ownable base constructor Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed warnings Signed-off-by: Logan Nguyen <[email protected]> * update: re-compiled all contracts Signed-off-by: Logan Nguyen <[email protected]> * update: replaced _isApprovedOrOwner with new _isAuthorized override Signed-off-by: Logan Nguyen <[email protected]> * update: removed ERC20Snapshot in unit tests Signed-off-by: Logan Nguyen <[email protected]> * update: removed safeTransferFrom(address, address, uint256) As OZ/contract v5.0.0 only allow override safeTransferFrom(address,address,uint256,bytes), safeTransaferFrom(address,address,uint256) will cause error `Trying to override non-virtual function.` Signed-off-by: Logan Nguyen <[email protected]> * update: add more to RETRY_DELAY Signed-off-by: Logan Nguyen <[email protected]> * feat: added OZUUPSUpgradeableV4 to bypass `safeUpgrade` checks Signed-off-by: Logan Nguyen <[email protected]> * update: re-compiled all contracts Signed-off-by: Logan Nguyen <[email protected]> * feat: added OZUUPSUpgradeableV4 to bypass `safeUpgrade` checks Signed-off-by: Logan Nguyen <[email protected]> * update: recompiled contracts that utilized OZUUPSUpgradeableV4 Signed-off-by: Logan Nguyen <[email protected]> * update: updated license Signed-off-by: Logan Nguyen <[email protected]> * update: restored destroyContract() Signed-off-by: Logan Nguyen <[email protected]> --------- Signed-off-by: Logan Nguyen <[email protected]>
- Loading branch information
1 parent
e0413d3
commit 271fa2e
Showing
64 changed files
with
1,466 additions
and
942 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
artifacts/contracts/diamond-pattern/facets/DiamondCutFacet.sol/DiamondCutFacet.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.