Skip to content

waitForUserOperationReceipt does not respect timeout #4106

@jsutaria

Description

@jsutaria

Check existing issues

Viem Version

2.39.3

Current Behavior

The timeout parameter in waitForUserOperationReceipt is not respected, and the timeout seems to clear after every retry. I passed in a timeout of 5 seconds, but the method still waiting until the user operation was confirmed before returning.

Expected Behavior

The user operation should throw a WaitForUserOperationReceiptTimeoutError after the timeout specified.

Steps To Reproduce

Set timeout parameter greater than the duration for one retry (i.e. 5000).
Send user operation on mainnet / sepolia - note that the timeout is not respected.

Link to Minimal Reproducible Example

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions