diff --git a/countries.go b/countries.go index e697910..e0b97e5 100644 --- a/countries.go +++ b/countries.go @@ -3499,7 +3499,7 @@ func (c CountryCode) Currency() CurrencyCode { //nolint:gocyclo case ATF: return CurrencyEUR case HRV: - return CurrencyHRK + return CurrencyEUR case CAF: return CurrencyXAF case TCD: diff --git a/currencies.go b/currencies.go index 22ecdb9..4b633d7 100644 --- a/currencies.go +++ b/currencies.go @@ -848,7 +848,7 @@ func (c CurrencyCode) Countries() []CountryCode { //nolint:gocyclo case CurrencyETB: return []CountryCode{ETH} case CurrencyEUR: - return []CountryCode{AND, AUT, BEL, CYP, EST, FIN, FRA, GUF, ATF, DEU, GRC, GLP, VAT, IRL, ITA, LVA, LTU, LUX, MLT, MTQ, MYT, MCO, MNE, NLD, PRT, REU, BLM, MAF, SPM, SMR, SVK, SVN, ESP, ALA} + return []CountryCode{AND, AUT, BEL, CYP, EST, FIN, FRA, GUF, ATF, DEU, GRC, GLP, VAT, IRL, ITA, LVA, LTU, LUX, MLT, MTQ, MYT, MCO, MNE, NLD, PRT, REU, BLM, MAF, SPM, SMR, SVK, SVN, ESP, ALA, HRV} case CurrencyFKP: return []CountryCode{FLK} case CurrencyFJD: diff --git a/currenciesconst.go b/currenciesconst.go index 5cc8d81..df6ab3a 100644 --- a/currenciesconst.go +++ b/currenciesconst.go @@ -230,6 +230,7 @@ const ( CurrencyCDF CurrencyCode = 976 CurrencyNZD CurrencyCode = 554 CurrencyCRC CurrencyCode = 188 + // Deprecated: Croatian Kuna is no longer in circulation, use CurrencyEUR instead. CurrencyHRK CurrencyCode = 191 CurrencyCUC CurrencyCode = 931 CurrencyCUP CurrencyCode = 192