Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiupuhalschi-rdx committed Feb 25, 2025
1 parent 14ac8e8 commit 5c5be4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ class DeviceMnemonicBuilderClient @Inject constructor(

suspend fun generateConfirmationWords(): List<SeedPhraseWord> = withContext(dispatcher) {
val indices = deviceMnemonicBuilder.getIndicesInMnemonicOfWordsToConfirm()
val lastWordIndex = indices.size - 1
indices.mapIndexed { i, index ->
SeedPhraseWord(
index = index.toInt(),
lastWord = i == indices.size - 1
lastWord = i == lastWordIndex
)
}
}
Expand Down

0 comments on commit 5c5be4d

Please sign in to comment.