fix 'cannot cast Null to String'

This commit is contained in:
sneurlax 2024-01-30 12:45:39 -06:00
parent 8cbca16a3a
commit 2e6ac40e20

View file

@ -406,7 +406,9 @@ abstract class SWB {
if (walletbackup['mnemonic'] == null) {
// probably private key based
if (walletbackup['privateKey'] != null) {
privateKey = walletbackup['privateKey'] as String;
}
} else {
if (walletbackup['mnemonic'] is List) {
List<String> mnemonicList = (walletbackup['mnemonic'] as List<dynamic>)