Skip to content

[bug] Invalid UserOperation signature or paymaster signature - Gas Sponsorship on embedded/AUTH wallets not working. #5559

@SaluteDan

Description

@SaluteDan

Link to minimal reproducible example

https://demo.attributes.gallery/mint/6993ad07982fa17f65a52c59

Steps to Reproduce

1 - Head to "https://demo.attributes.gallery/mint/6993ad07982fa17f65a52c59"
2 - Log in (ensure it's via social/AUTH, and you switch to the smart account.
3 - Claim ATTR Points, the platform's native token.
4 - Try minting an NFT and keep an eye on the browser's console log.

(Note: If social login is missing from options, clear your cache.)

Summary

What should have happened: The transaction fee should be covered or sponsored by my paymaster, but it fails with the following error: "UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature)."

Upon researching, the error message means that the user operation was modified after the Paymaster signed it.
Explained more here: "https://docs.cdp.coinbase.com/paymaster/reference-troubleshooting/troubleshooting#invalid-signature"

What is odd is that the transaction works when the wallet client is not AUTH/social login. Performing the same transaction with a Base smart account works flawlessly.

List of related npm package versions

"@reown/appkit": "^1.8.15",
"@reown/appkit-adapter-ethers": "^1.8.14",
"@reown/appkit-adapter-solana": "^1.8.14",
"@reown/appkit-adapter-wagmi": "^1.8.15",
"viem": "^2.43.4",
"wagmi": "^2.19.5",

Node.js Version

20

Package Manager

npm@10

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