extractV2Req method

  1. @override
Future<(Request, ClientResponse)> extractV2Req()

Implementation

@override
Future<(Request, ClientResponse)> extractV2Req() async {
  try {
    final res = await super.extractV2Req();
    final request = Request(
      url: await Url.fromStr(res.$1.url.asString()),
      body: res.$1.body,
    );
    return (request, res.$2);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}