Change parseUri to compares with lowercase cryptocoin

This commit is contained in:
hvarona 2018-11-18 21:24:15 -04:00
parent 5aa7175016
commit 2e2ee01052

View file

@ -542,7 +542,7 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
String uri = request.getUri(); String uri = request.getUri();
if(uri.indexOf(":")>0){ if(uri.indexOf(":")>0){
String cryptoNet = uri.substring(0,uri.indexOf(":")); String cryptoNet = uri.substring(0,uri.indexOf(":"));
if(cryptoNet.equalsIgnoreCase(this.cryptoCoin.getLabel())){ if(cryptoNet.equalsIgnoreCase(this.cryptoCoin.getLabel().toLowerCase())){
try{ try{
Address address = Address.fromBase58(this.cryptoCoin.getParameters(), request.getAddress()); Address address = Address.fromBase58(this.cryptoCoin.getParameters(), request.getAddress());
request.setAddress(address.toString()); request.setAddress(address.toString());