Skip to content

fix(sendUserOpAndWait): preserve userOpHash on wait timeout#354

Open
Sertug17 wants to merge 1 commit into
base:masterfrom
Sertug17:fix/send-user-op-and-wait-preserve-user-op-hash
Open

fix(sendUserOpAndWait): preserve userOpHash on wait timeout#354
Sertug17 wants to merge 1 commit into
base:masterfrom
Sertug17:fix/send-user-op-and-wait-preserve-user-op-hash

Conversation

@Sertug17

Copy link
Copy Markdown

When waitForUserOperation times out, the error currently swallows the userOpHash and gives no indication the operation was already broadcast. Attach userOpHash and broadcast: true to the thrown error so callers can distinguish between broadcast failure and confirmation timeout.

When waitForUserOperation times out, the error message currently
swallows the userOpHash and gives no indication that the user operation
was already broadcast. Attach userOpHash and a broadcast: true flag
to the thrown error so callers can distinguish between the op never
reaching the mempool and the op being broadcast but confirmation
taking longer than the timeout.

This prevents a false-negative where a caller thinks the revoke/
charge failed when it was actually submitted and may confirm shortly.
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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