-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Viem Version
2.28.4
Current Behavior
The new typing for sendCalls -> capabilities -> paymasterService does not allow for EIP 5792's optional parameter.
EIP 5792 typing:

Including { url, optional: true } results in an error.
Expected Behavior
The context parameter from EIP 7677 was updated accurately, but the existing optional parameter should not be removed.
Passing in { url, optional: true } should not result in an error.
Steps To Reproduce
Pass in optional to the paymasterService object into sendCalls.
e.g.
sendCalls({ chainId, account, calls, capabilities: { paymasterService: { [chainId]: { url, optional: true } } } })Link to Minimal Reproducible Example
No response
Anything else?
No response
Sednaoui
Metadata
Metadata
Assignees
Labels
No labels
