Skip to content

Commit

Permalink
Fix restore from local file
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Jul 17, 2023
1 parent 1441c9a commit b27d572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object BackupLocalModule {
fun getAccountTypeFromData(accountType: String, data: ByteArray): AccountType {
return when (accountType) {
MNEMONIC -> {
val parts = String(data, Charsets.UTF_8).split("@")
val parts = String(data, Charsets.UTF_8).split("@", limit = 2)
//check for nonstandard mnemonic from iOs app
if (parts[0].split("&").size > 1)
throw IllegalStateException("Non standard mnemonic")
Expand Down

0 comments on commit b27d572

Please sign in to comment.