From a17a551a2b21c76e2ef9c7020c1951c4b3228791 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 30 Jan 2024 12:25:39 -0600 Subject: [PATCH] add myName to saved frost info --- .../stack_backup_views/helpers/restore_create_backup.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart b/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart index 11254181a..01cc9f65e 100644 --- a/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart +++ b/lib/pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart @@ -306,6 +306,7 @@ abstract class SWB { } else if (wallet is BitcoinFrostWallet) { String? keys = await wallet.getSerializedKeys(); String? config = await wallet.getMultisigConfig(); + String myName = wallet.frostInfo.myName; if (keys == null || config == null) { String err = "${wallet.info.coin.name} wallet ${wallet.info.name} " "has null keys or config"; @@ -318,6 +319,7 @@ abstract class SWB { Map otherData = {}; otherData["keys"] = keys; otherData["config"] = config; + otherData["myName"] = myName; backupWallet['otherDataJsonString'] = jsonEncode(otherData); } backupWallet['coinName'] = wallet.info.coin.name;