Fixed btc to flo address conversion

This commit is contained in:
sairaj mote 2023-11-20 14:05:48 +05:30
parent daee409af8
commit dc0e199d58

View File

@ -1497,6 +1497,7 @@
let privateKeyConversionDescription = ''; let privateKeyConversionDescription = '';
let addressConversionDescription = null; let addressConversionDescription = null;
let addressForConversion = '' let addressForConversion = ''
getRef('conversion_view_selector').value = convertingFrom
switch (convertingFrom) { switch (convertingFrom) {
case 'flo': case 'flo':
privateKeyConversionDescription = 'Convert FLO private key to corresponding BTC | ETH address & private key'; privateKeyConversionDescription = 'Convert FLO private key to corresponding BTC | ETH address & private key';
@ -1637,7 +1638,7 @@
convertedTo = 'BTC' convertedTo = 'BTC'
break; break;
case 'btc': case 'btc':
convertedAddress = floCrypto.getFloID(addressToConvert); convertedAddress = floCrypto.toFloID(addressToConvert);
convertedTo = 'FLO' convertedTo = 'FLO'
break; break;
} }