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

Feat(DEVX-410): E2E Tests #351

Merged
merged 9 commits into from
Jan 5, 2024
Merged

Feat(DEVX-410): E2E Tests #351

merged 9 commits into from
Jan 5, 2024

Conversation

joepegler
Copy link
Collaborator

@joepegler joepegler commented Jan 4, 2024

Summary

Notion Doc
Related Issue: #DEVX-410

Change Type

  • Bug Fix
  • Refactor
  • New Feature
  • Breaking Change
  • Documentation Update
  • Performance Improvement
  • Other

Checklist

  • My code follows this project's style guidelines
  • I've reviewed my own code
  • I've added comments for any hard-to-understand areas
  • I've updated the documentation if necessary
  • My changes generate no new warnings
  • I've added tests that prove my fix is effective or my feature works
  • All unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Information

I've added some additional aliases for devEx purposes, and then used them in the tests

createSmartWalletAccount -> BiconomySmartAccountV2.create
smartWallet.sendTransaction(s) -> BiconomySmartAccountV2.buildUserOp + BiconomySmartAccountV2.sendUserOp

I've also imported and then re-exported the Bundler and Paymaster packages from the accounts package, so that mostly everything can be important from "@biconomy/account"

Copy link

linear bot commented Jan 4, 2024

DEVX-410 Add tests

@joepegler joepegler force-pushed the feature/DEVX-410_add-tests branch 3 times, most recently from 038f2b4 to ebd2593 Compare January 4, 2024 16:31
tidy

increase mintNFT timeout

Allow sendTransaction to send multiple transactions
@joepegler joepegler force-pushed the feature/DEVX-410_add-tests branch from ebd2593 to d6a6242 Compare January 4, 2024 16:31
@joepegler joepegler marked this pull request as ready for review January 4, 2024 17:23
Copy link
Contributor

@AmanRaj1608 AmanRaj1608 left a comment

Choose a reason for hiding this comment

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

Overall I have these few concerns

  • What if there are multiple PR's opening at same time, test might fail if the nonce is incorrect.
  • Hard to manage the paymaster with balance.
  • For non-gasless tests would need to make sure and have the funds in EOA.

Latency is also one of my concern as build time increases it will cost for on CI/CD infra. In this PR I can see it is 1m. But if we add more tests this can go up really fast.

@joepegler joepegler force-pushed the feature/DEVX-410_add-tests branch from 7f026ce to ade3271 Compare January 5, 2024 13:36
Copy link
Contributor

@AmanRaj1608 AmanRaj1608 left a comment

Choose a reason for hiding this comment

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

LGTM!

@AmanRaj1608
Copy link
Contributor

Even tho I approved this it's still not making the build. Looks like it needs all approvals.
Do we have any other github.event.review.state ? @joepegler

@joepegler joepegler merged commit 3a286b7 into v4 Jan 5, 2024
3 checks passed
@joepegler joepegler deleted the feature/DEVX-410_add-tests branch January 5, 2024 15:42
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