buildOp method
Builds the operation asynchronously and returns a future of it.
Implementation
@override
Future<IUserOperation> buildOp(
EthereumAddress entryPoint,
BigInt chainId,
) async {
final ctx = UserOperationMiddlewareCtx(
_currentOp,
entryPoint,
chainId,
);
for (final fn in _middlewareStack) {
await fn(ctx);
}
setPartial(ctx.op.toJson());
return _currentOp;
}