Skip to content

fix(account-abstraction): handle pending User Operations in getUserOperation - #5058

Merged
jxom merged 1 commit into
wevm:mainfrom
riba2534:cursor/fix-get-user-operation-pending-null-3459
Sep 4, 2026
Merged

jxom merged 1 commit into
wevm:mainfrom
riba2534:cursor/fix-get-user-operation-pending-null-3459

Conversation

@riba2534

@riba2534 riba2534 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Bundlers return null for blockHash, blockNumber, and transactionHash while a User Operation is still in the mempool. getUserOperation passed blockNumber to BigInt, which throws Cannot convert null to a BigInt, so polling a just-submitted UserOp is unusable.

Those three fields are now null-safe at runtime and nullable on GetUserOperationByHashReturnType / GetUserOperationReturnType.

Closes #5057

…eration

Bundlers return null blockHash, blockNumber, and transactionHash while a User
Operation sits in the mempool, so BigInt(blockNumber) threw "Cannot convert null
to a BigInt". Those three fields are now null-safe at runtime and nullable in
GetUserOperationByHashReturnType and GetUserOperationReturnType.
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

@riba2534 is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b18e3b8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nicknixcape nicknixcape mentioned this pull request Sep 3, 2026
6 tasks
@jxom
jxom merged commit 3079614 into wevm:main Sep 4, 2026
2 of 3 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 4, 2026
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.

getUserOperation throws "Cannot convert null to a BigInt" for a pending UserOp

2 participants