Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Aug 16, 2024
1 parent 53a2ea4 commit 87b40c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/Mnemonic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Mnemonic(val language: Language = Language.ENGLISH, wordlist: List<String>

init {
val wordlistFile = wordlist ?: run {
val resourceName = "wordlist/${language}.txt"
val resourceName = "wordlist/${language.code}.txt"
val inputStream = Mnemonic::class.java.classLoader.getResourceAsStream(resourceName)
checkNotNull(inputStream) { "Word list file not found for language: $language" }
inputStream.bufferedReader().useLines { it.toList() }
Expand Down

0 comments on commit 87b40c1

Please sign in to comment.