Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom paymaster handler config to react setup & hooks #238

Open
coffeexcoin opened this issue Feb 14, 2025 · 0 comments
Open

Add custom paymaster handler config to react setup & hooks #238

coffeexcoin opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels

Comments

@coffeexcoin
Copy link
Collaborator

We can't currently use a custom paymaster handler with react hooks (createSession, useWriteContractSponsored, etc...).

For example here - these hooks are using the global AbstractWalletProvider but there is currently no way to set customPaymasterHandler on the client in this scenario.

  • Update the global context in agw-react to allow passing a custom paymaster handler in config such that any AGW client being configured will use the custom paymaster handler.
  • Update custom react hooks that create an agw client to allow an override custom paymaster handler to be passed in
@coffeexcoin coffeexcoin self-assigned this Feb 14, 2025
@coffeexcoin coffeexcoin changed the title Paymaster handler not available in react hooks Add custom paymaster handler config to react setup & hooks Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant