Change parseUri to compares with lowercase cryptocoin

feat_androidx_migration
hvarona 2018-11-18 21:30:42 -04:00
parent 2e2ee01052
commit ce1df325d8
1 changed files with 1 additions and 1 deletions

View File

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