Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

More cleanup for account-integrations/safe #87

Merged
merged 4 commits into from
Sep 18, 2023
Merged

Conversation

voltrevo
Copy link
Contributor

@voltrevo voltrevo commented Sep 18, 2023

Dependent PR

This PR depends on #86. Please merge that PR first.

About

  • Remove ethers-v5 (consolidate on v6 only)
  • Improve syncing with bundler using APIs instead of waiting 5 seconds
  • sendUserOpAndWait sends a user operation and polls for the receipt
  • receiptOf avoids double await pattern, alleviating the temptation to not wait for the receipt

yarn hardhat test is now much faster (not foundry fast, but still).

@voltrevo voltrevo changed the title More cleanup More cleanup for account-integrations/safe Sep 18, 2023
@voltrevo voltrevo mentioned this pull request Sep 18, 2023
Copy link
Contributor

@JohnGuilding JohnGuilding left a comment

Choose a reason for hiding this comment

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

Nicee! Approving

@@ -33,7 +33,6 @@
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"ethers": "^6.4.0",
"ethers-v5": "npm:[email protected]",
Copy link
Contributor

Choose a reason for hiding this comment

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

When I originally copied over these tests and converted them to use ethers v6, I ran into an issue where the bundlerProvider would not work if it wasn't connected to an ethers v5 provider. Hence I added this alias. Did you run into this issue at all? It looks like you just started using ethers v6 for the bundlerProvider with no issues

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh interesting. Yeah I didn't run into any trouble, wonder what happened.

Base automatically changed from linting-and-cleanup to main September 18, 2023 20:07
@blakecduncan blakecduncan merged commit 7529998 into main Sep 18, 2023
@blakecduncan blakecduncan deleted the more-cleanup branch September 18, 2023 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants