mirror of https://github.com/m2049r/xmrwallet.git
fix URI generation (#716)
This commit is contained in:
parent
a19ad7fd52
commit
dda86bd5de
|
@ -84,7 +84,9 @@ public class BarcodeData {
|
||||||
public String getUriString() {
|
public String getUriString() {
|
||||||
if (asset != Crypto.XMR) throw new IllegalStateException("We can only do XMR stuff!");
|
if (asset != Crypto.XMR) throw new IllegalStateException("We can only do XMR stuff!");
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(Crypto.XMR.getUriScheme()).append(address);
|
sb.append(Crypto.XMR.getUriScheme())
|
||||||
|
.append(':')
|
||||||
|
.append(address);
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
if ((description != null) && !description.isEmpty()) {
|
if ((description != null) && !description.isEmpty()) {
|
||||||
sb.append(first ? "?" : "&");
|
sb.append(first ? "?" : "&");
|
||||||
|
|
Loading…
Reference in New Issue