mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-12 09:27:01 +00:00
fix: double encoded qr address prefix
This commit is contained in:
parent
1a094d3745
commit
cb11d58c47
1 changed files with 8 additions and 1 deletions
|
@ -164,7 +164,14 @@ class AddressUtils {
|
|||
) {
|
||||
// Filter unrecognized parameters.
|
||||
final filteredParams = _filterParams(params);
|
||||
String uriString = "$scheme:$address";
|
||||
String uriString;
|
||||
|
||||
// cashaddrs strike again
|
||||
if (address.startsWith("$scheme:")) {
|
||||
uriString = address;
|
||||
} else {
|
||||
uriString = "$scheme:$address";
|
||||
}
|
||||
|
||||
if (scheme.toLowerCase() == "monero") {
|
||||
// Handle Monero-specific formatting.
|
||||
|
|
Loading…
Reference in a new issue