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 11 commits into
base: sparrowDom/rebaseElsewhere_v2
Choose a base branch
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

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


for (let j = 0; j < data.length; j++) {
const [account,,] = data[j].split(',');
balanceOfPromises.push(await tokenContract.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.

You need to remove the await here :)

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