Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Airdrop/Airdrop.js
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | const calculateXecAirdrop = async () => { | ||||
} catch (err) { | } catch (err) { | ||||
console.log(`Error getting token utxos from chronik`, err); | console.log(`Error getting token utxos from chronik`, err); | ||||
toast.error('Error retrieving airdrop recipients'); | toast.error('Error retrieving airdrop recipients'); | ||||
return passLoadingStatus(false); | return passLoadingStatus(false); | ||||
} | } | ||||
const excludedAddresses = []; | const excludedAddresses = []; | ||||
if (ignoreOwnAddress) { | if (ignoreOwnAddress) { | ||||
excludedAddresses.push( | excludedAddresses.push(wallet.paths.get(1899).address); | ||||
wallet.paths.find(pathInfo => pathInfo.path === 1899).address, | |||||
); | |||||
} | } | ||||
if (ignoreMintAddress) { | if (ignoreMintAddress) { | ||||
let mintAddress; | let mintAddress; | ||||
try { | try { | ||||
mintAddress = await getMintAddress(chronik, formData.tokenId); | mintAddress = await getMintAddress(chronik, formData.tokenId); | ||||
excludedAddresses.push(mintAddress); | excludedAddresses.push(mintAddress); | ||||
} catch (err) { | } catch (err) { | ||||
console.log(`Error getting mint address from chronik`, err); | console.log(`Error getting mint address from chronik`, err); | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |