-
Notifications
You must be signed in to change notification settings - Fork 54
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
update: upgrade @openzeppelin contract packages to latest 5.0.0 version (#536) #541
update: upgrade @openzeppelin contract packages to latest 5.0.0 version (#536) #541
Conversation
Test Results 15 files ±0 65 suites - 1 8m 0s ⏱️ +13s For more details on these failures, see this check. Results for commit 04191df. ± Comparison against base commit e0413d3. This pull request removes 3 tests.
♻️ This comment has been updated with latest results. |
ae3fc1e
to
f9a2db5
Compare
@@ -138,15 +138,6 @@ contract HederaNonFungibleToken is ERC721, Constants { | |||
return super.transferFrom(from, to, tokenId); | |||
} | |||
|
|||
function safeTransferFrom(address from, address to, uint256 tokenId) public override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notice: This is being removed as OZ/contract v5.0.0 only allows override safeTransferFrom(address,address,uint256,bytes), and safeTransaferFrom(address,address,uint256) will cause error Trying to override non-virtual function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, blocking until we cut a 0.6 release branch
Nicely done ... I have several branches that I want to rebase on this one. Waiting for the merger... |
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
…n(); Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
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]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
b5903c3
to
5b5b4bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly good.
2 items
@@ -0,0 +1,176 @@ | |||
// SPDX-License-Identifier: MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SPDX-License-Identifier: MIT | |
// SPDX-License-Identifier: Apache-2.0 |
@@ -14,8 +14,4 @@ contract Main is Base { | |||
function returnSuper() public view virtual returns (string memory) { | |||
return super.classIdentifier(); | |||
} | |||
|
|||
function destroyContract(address recipient) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please restore.
We can remove it separately but until Cancun let's maintain the coverage
@@ -8,6 +8,6 @@ OPERATOR_KEY_A= 302e020100300506032b65700422042091132178e72057a1d7528025956fe39b | |||
# ECDSA HEX Encoded Private Key | |||
HEX_PRIVATE_KEY_A= 0x2e1d968b041d84dd120a5860cee60cd83f9374ef527ca86996317ada3d0d03e7 | |||
HEX_PRIVATE_KEY_B= 0x45a5a7108a18dd5013cf2d5857a28144beadc9c70b3bdbd914e38df4e804b8d8 | |||
RETRY_DELAY=3000 # ms | |||
RETRY_DELAY=4000 # ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q:why the increase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The should be able to execute cryptoTransfer for hbar transfer only
unit test in the TokenTransferContract Test Suite
test suite was consistently failing with as the data doesn't have enough time to reflect the changes so I decided to increase it for 1000 more ms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand but it seems strange that 1 min (3000 ms * 20) isn't enough.
Now we're making it 80s (4000ms *20) something is up.
What is happening that requires this long of retries?
Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Description:
upgrade safe
checks from hardhat-updates's .deployProxy() method, contractOZUUPSUpgradeableV4
is added. ThisOZUUPSUpgradeableV4
is a clone of theUUPSUpgradable
contract from OZ @v5.x but with an extraupgradeTo
function. This contract is only for unblocking purpose and should be deprecated in the future release when we upgrade to[email protected]
Related issue(s):
Fixes #536
Notes for reviewer:
Checklist