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

chore: nit updates to use Promise all and helper methods for readability #212

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

denniswon
Copy link
Contributor

@denniswon denniswon commented Nov 5, 2023

PR-Codex overview

Focus of the PR:

This PR focuses on improving error handling and setting the maxPriorityFeePerGasBid value in the SmartAccountProvider class.

Detailed summary:

  • Updated bigIntMax function in bigint.ts to throw an error if no arguments are provided.
  • Updated error message in base.ts to include the uoStruct parameter.
  • Updated feeDataGetter function in base.ts to use bigIntMax function and handle error cases more effectively.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@@ -405,7 +405,7 @@ export class SmartAccountProvider<
// this pretty prints the uo
throw new Error(
`Request is missing parameters. All properties on UserOperationStruct must be set. uo: ${JSON.stringify(
request,
uoStruct,
Copy link
Contributor

Choose a reason for hiding this comment

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

was there a reason not to use request here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thought hex is less readable, because users will identify numbers better.

Copy link
Contributor

@avasisht23 avasisht23 left a comment

Choose a reason for hiding this comment

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

quick q, otw good catches!

@denniswon denniswon merged commit 3d6ec25 into development Nov 5, 2023
3 checks passed
@denniswon denniswon deleted the denniswon/chore branch November 5, 2023 23:39
@moldy530 moldy530 mentioned this pull request Nov 10, 2023
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