Skip to content

Commit

Permalink
feat: if paymasterAndData override exists then skip paymaster middlew…
Browse files Browse the repository at this point in the history
…are during the middleware pipeline run
  • Loading branch information
denniswon committed Nov 10, 2023
1 parent 9d72cb7 commit e58a52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/provider/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export class SmartAccountProvider<
// run this before paymaster middleware
async (struct) => ({ ...struct, ...overrides }),
this.customMiddleware ?? noOpMiddleware,
this.paymasterDataMiddleware
overrides?.paymasterAndData ? noOpMiddleware : this.paymasterDataMiddleware
)(uo);

return resolveProperties<UserOperationStruct>(result);
Expand Down

0 comments on commit e58a52c

Please sign in to comment.