Skip to content

Commit

Permalink
nano-gpt support any crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
fossephate committed Feb 4, 2025
1 parent 6d4b931 commit e08b824
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/payment_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class PaymentRequest {
var amount = "";
var note = "";
var scheme = "";
String? walletType;
String? callbackUrl;
String? callbackMessage;

Expand All @@ -19,11 +20,11 @@ class PaymentRequest {
scheme = uri.scheme;
callbackUrl = uri.queryParameters['callback'];
callbackMessage = uri.queryParameters['callbackMessage'];
walletType = uri.queryParameters['type'];
}

if (scheme == "nano-gpt") {
// treat as nano so filling out the address works:
scheme = "nano";
scheme = walletType ?? "nano";
}

if (nano != null) {
Expand Down

0 comments on commit e08b824

Please sign in to comment.