-
Notifications
You must be signed in to change notification settings - Fork 133
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
fix: waitForUserOperationTx parameters were incorrect #634
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few qs but looks good
@@ -86,6 +86,25 @@ export type DropAndReplaceUserOperationParameters< | |||
//#region WaitForUserOperationTxParameters | |||
export type WaitForUserOperationTxParameters = { | |||
hash: Hex; | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to reuse these from the client opts schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, but then didn't want to perpetuate zod cuz it's annoying in some places
for (let i = 0; i < client.txMaxRetries; i++) { | ||
const { | ||
hash, | ||
retries = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these aren't provided is this going to use what the client passes in? I don't see that in the diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea that's what this line does, the destructue with the equals is setting the default value if it's not passed in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh neat okay
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
This PR enhances the
waitForUserOperationTransaction
function in the smart account module by adding support for custom exponential backoff parameters.Detailed summary
retries
object toWaitForUserOperationTxParameters
for custom backoff settingswaitForUserOperationTransaction
function to use custom backoff settings if provided