mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +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) {
|
} else if (wallet is BitcoinFrostWallet) {
|
||||||
String? keys = await wallet.getSerializedKeys();
|
String? keys = await wallet.getSerializedKeys();
|
||||||
String? config = await wallet.getMultisigConfig();
|
String? config = await wallet.getMultisigConfig();
|
||||||
|
String myName = wallet.frostInfo.myName;
|
||||||
if (keys == null || config == null) {
|
if (keys == null || config == null) {
|
||||||
String err = "${wallet.info.coin.name} wallet ${wallet.info.name} "
|
String err = "${wallet.info.coin.name} wallet ${wallet.info.name} "
|
||||||
"has null keys or config";
|
"has null keys or config";
|
||||||
|
@ -318,6 +319,7 @@ abstract class SWB {
|
||||||
Map<String, dynamic> otherData = {};
|
Map<String, dynamic> otherData = {};
|
||||||
otherData["keys"] = keys;
|
otherData["keys"] = keys;
|
||||||
otherData["config"] = config;
|
otherData["config"] = config;
|
||||||
|
otherData["myName"] = myName;
|
||||||
backupWallet['otherDataJsonString'] = jsonEncode(otherData);
|
backupWallet['otherDataJsonString'] = jsonEncode(otherData);
|
||||||
}
|
}
|
||||||
backupWallet['coinName'] = wallet.info.coin.name;
|
backupWallet['coinName'] = wallet.info.coin.name;
|
||||||
|
|
Loading…
Reference in a new issue