From 6fd877e815b21f165449ee9bc3076a0eef6829ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Martin=C3=A1k?= Date: Tue, 13 Apr 2021 17:58:00 +0200 Subject: [PATCH] Fix parsing address when scanning QR code --- wallet/src/de/schildbach/wallet/ui/InputParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/src/de/schildbach/wallet/ui/InputParser.java b/wallet/src/de/schildbach/wallet/ui/InputParser.java index 9141da64f2..9afdc6d271 100644 --- a/wallet/src/de/schildbach/wallet/ui/InputParser.java +++ b/wallet/src/de/schildbach/wallet/ui/InputParser.java @@ -90,7 +90,7 @@ public void parse() { } } else if (input.startsWith("dogecoin:") || input.startsWith("DOGECOIN:")) { try { - final BitcoinURI bitcoinUri = new BitcoinURI(Constants.NETWORK_PARAMETERS, "dogecoin:" + input.substring(8)); + final BitcoinURI bitcoinUri = new BitcoinURI(Constants.NETWORK_PARAMETERS, "dogecoin:" + input.substring(9)); final Address address = bitcoinUri.getAddress(); if (address != null && !Constants.NETWORK_PARAMETERS.equals(address.getParameters())) throw new BitcoinURIParseException("mismatched network");