Skip to content

Commit

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

0 comments on commit 9a56f6c

Please sign in to comment.