Skip to content

Commit 8553a4e

Browse files
authored
Merge pull request #254 from DimensionDev/bugfix/skip_error_wallet
skip error wallet
2 parents b7e5a4b + c024e88 commit 8553a4e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

wallet/src/androidMain/kotlin/com/dimension/maskbook/wallet/repository/WalletRepository.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,12 @@ internal class WalletRepository(
914914
platformType = CoinPlatformType.Ethereum
915915
)
916916
} else if (!privateKey.isNullOrEmpty()) {
917-
importWallet(name = data.name, privateKey = privateKey, platformType = CoinPlatformType.Ethereum)
917+
try {
918+
importWallet(name = data.name, privateKey = privateKey, platformType = CoinPlatformType.Ethereum)
919+
} catch (e: Exception) {
920+
// just ignore it, lol
921+
e.printStackTrace()
922+
}
918923
} else {
919924
// not a valid backup
920925
}

0 commit comments

Comments
 (0)