pimlicolabs/permissionless.js

`prepareUserOperationRequest` ignores `middleware` parameter

Closed this issue · 1 comments

prepareUserOperationRequest: (args, stateOverrides) =>
prepareUserOperationRequest(
client,
{
...args,
middleware
},
stateOverrides
),

client.prepareUserOperationRequest accepts a middleware parameter. This is then embedded in args. However, because args is overwritten by the middleware from smartAccountActions({middleware}), this middleware parameter in prepareUserOperationRequest({middleware}) actually does not have an effect.

This is no more valid in permissionless@0.2.x