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

Kl factory - deposit tests #190

Closed
wants to merge 6 commits into from
Closed

Conversation

juan518munoz
Copy link

@juan518munoz juan518munoz commented Feb 26, 2024

Closes #172

What ❔

Add native/base token deposit tests.

Why ❔

Verify correct functionality. To check, cd into ts-integration directory and run the following command:

yarn test native-erc20.test.ts

(There are two TODOs that should be addressed before merging)

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@juan518munoz juan518munoz marked this pull request as ready for review February 26, 2024 21:20
@@ -64,7 +64,12 @@ export class TestMaster {
this.l2Provider.pollingInterval = 5000;
}

this.mainWallet = new zksync.Wallet(suiteWalletPK, this.l2Provider, this.l1Provider);
// TODO: suiteWalletPK should be the same as the mainWalletPK used in context-owner.ts, otherwise, account won't have funds to operate with.

Choose a reason for hiding this comment

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

Care to explain bit more about this comment?
Do we have an issue for this?

Copy link
Author

Choose a reason for hiding this comment

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

Upon further inspecting how the testing works, it turns out that the individual wallet used for each test wasn't getting native erc20 funds needed, this is now done inside of distributeL1BaseToken().

@juan518munoz juan518munoz deleted the kl-factory-deposit-tests branch April 19, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants