mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
add myName to saved frost info
This commit is contained in:
parent
79fedf46e5
commit
a17a551a2b
1 changed files with 2 additions and 0 deletions
|
@ -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<String, dynamic> otherData = {};
|
||||
otherData["keys"] = keys;
|
||||
otherData["config"] = config;
|
||||
otherData["myName"] = myName;
|
||||
backupWallet['otherDataJsonString'] = jsonEncode(otherData);
|
||||
}
|
||||
backupWallet['coinName'] = wallet.info.coin.name;
|
||||
|
|
Loading…
Reference in a new issue