Skip to content

Commit

Permalink
Fix bitcoin code
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jun 5, 2024
1 parent a8d525d commit 520854f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QRCoder/PayloadGenerator/BitcoinLikeCryptoCurrencyAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public override string ToString()
string? query = null;

var queryValues = new KeyValuePair<string, string?>[]{
new KeyValuePair<string, string?>(nameof(_label), _label),
new KeyValuePair<string, string?>(nameof(_message), _message),
new KeyValuePair<string, string?>(nameof(_amount), _amount.HasValue ? _amount.Value.ToString("#.########", CultureInfo.InvariantCulture) : null)
new KeyValuePair<string, string?>("label", _label),
new KeyValuePair<string, string?>("message", _message),
new KeyValuePair<string, string?>("amount", _amount.HasValue ? _amount.Value.ToString("#.########", CultureInfo.InvariantCulture) : null)
};

if (queryValues.Any(keyPair => !string.IsNullOrEmpty(keyPair.Value)))
Expand Down

0 comments on commit 520854f

Please sign in to comment.