-
Notifications
You must be signed in to change notification settings - Fork 83
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
base: master
Are you sure you want to change the base?
Upgrade tests #2318
Conversation
…opted out already
…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) |
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.
Would be better to do this in batches using Promise.all
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.
Agreed, I didn't do that in the end because all the storage slots are already cached and this function executes quite quickly
This reverts commit dc854bc.
…nto sparrowDom/upgrade_tests
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