Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix CoinSwap address validations for XRP and DAI.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Apr 22, 2021
1 parent 6539115 commit a0fa86a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/components/CoinSwapPage/CoinSwapDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const CoinNames = {
};
const AddressValidations = {};
for (const coin of ['BTC', 'ETH', 'ZEC', 'LTC', 'XLM', 'BNB', 'USDT', 'USDC', 'DASH', 'DCR', 'PAX']) {
for (const coin of ['BTC', 'ETH', 'ZEC', 'LTC', 'XRP', 'XLM', 'BNB', 'USDT', 'USDC', 'DASH', 'DCR', 'PAX']) {
AddressValidations[coin] = (address) => {
try {
return CryptoAddressValidator.validate(address, coin);
Expand All @@ -280,6 +280,8 @@ for (const coin of ['BTC', 'ETH', 'ZEC', 'LTC', 'XLM', 'BNB', 'USDT', 'USDC', 'D
}
}
AddressValidations.DAI = (address) => CryptoAddressValidator.validate(address, 'ETH');
export default {
name: 'CoinSwapDetail',
Expand Down

0 comments on commit a0fa86a

Please sign in to comment.