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

Upgrade tests #2318

Open
wants to merge 113 commits into
base: master
Choose a base branch
from
Open

Upgrade tests #2318

wants to merge 113 commits into from

Conversation

sparrowDom
Copy link
Member

This is only a pull request to perform the upgrade tests of token contract that check that all the token balances of OUSD, OETH and Super OETH remain the same after the contract upgrade. See contracts/test/token/README.md on how to execute the procedure.

This PR should not be merged

sparrowDom and others added 30 commits October 30, 2024 23:11
…ngly be used to return true for yield delegation sources
* use safecasts for any downcasting

* use safecast when downcasting from int256. Also fix tests

* prettier

* clean up implementation
for (let i = 0; i < data.length; i++) {
const [account,,balanceBefore] = data[i].split(',');
const expectedBalance = BigNumber.from(balanceBefore);
const actualBalance = await upgradedTokenContract.balanceOf(account)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be better to do this in batches using Promise.all

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, I didn't do that in the end because all the storage slots are already cached and this function executes quite quickly

Base automatically changed from sparrowDom/rebaseElsewhere_v2 to master January 8, 2025 13:14
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.

4 participants