Skip to content
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

Add sharedConsumer test cases. #55

Merged
merged 7 commits into from
Nov 29, 2023
Merged

Conversation

Andlyn666
Copy link
Contributor

No description provided.

Copy link
Contributor

@kafeikui kafeikui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new added test case is perfect to me. However, sorry I just noticed that it's unacceptable to use higher major version of openzeppelin-contracts-upgradeable which is greater than 4.x.x.

As openzeppelin says in the latest README.md, "For upgradeable contracts, the storage layout of different major versions should be assumed incompatible". We can affirm that for example, the way to implement OwnableUpgradeable.sol between 4.x.x and 5.x.x is totally different, which will disrupt the global variable layout, tending to make irreversible results(say we upgrade Adapter.sol and do some interactions).

Actually it's ok to use the latest openzeppelin-contracts-upgradeable on user contracts, but since we still need to test them in the main repo, let's keep the same library version. Please modify this pr and submit a pr for relevant changes on https://github.com/ARPA-Network/Randcast-User-Contract.

@Andlyn666 Andlyn666 merged commit 57d3559 into ARPA-Network:main Nov 29, 2023
2 of 4 checks passed
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.

2 participants