Skip to content

Commit

Permalink
fix extractRequest bugs in SessionInitializer and ActiveSession
Browse files Browse the repository at this point in the history
  • Loading branch information
kumulynja committed Jul 20, 2024
1 parent 5d6f717 commit e3324ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/receive/v2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SessionInitializer extends FfiSessionInitializer {
try {
final res = await FfiSessionInitializer.extractReq(ptr: this);
final request =
Request(await Url.fromString(res.$1.$1.query()!), res.$1.$2);
Request(await Url.fromString(res.$1.$1.asString()), res.$1.$2);
return (request, ClientResponse._(field0: res.$2.field0));
} on error.PayjoinError catch (e) {
throw mapPayjoinError(e);
Expand All @@ -60,7 +60,7 @@ class ActiveSession extends FfiActiveSession {
try {
final res = await FfiActiveSession.extractReq(ptr: this);
final request =
Request(await Url.fromString(res.$1.$1.query()!), res.$1.$2);
Request(await Url.fromString(res.$1.$1.asString()), res.$1.$2);
return (request, ClientResponse._(field0: res.$2.field0));
} on error.PayjoinError catch (e) {
throw mapPayjoinError(e);
Expand Down

0 comments on commit e3324ad

Please sign in to comment.