Skip to content

Commit

Permalink
Add sponsorship policy to client
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuilding committed Sep 5, 2024
1 parent dc3f1d9 commit 54f4fac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/interface/src/hooks/useSmartAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const createAccountClient = async (
entryPoint: ENTRYPOINT_ADDRESS_V07,
chain: config.network,
bundlerTransport: http(getPimlicoRPCURL()),
paymasterContext: {
sponsorshipPolicyId: "sp_parallel_pretty_boy"
},
middleware: {
sponsorUserOperation: paymasterClient.sponsorUserOperation,
gasPrice: async () =>
Expand Down

0 comments on commit 54f4fac

Please sign in to comment.