more fixes

This commit is contained in:
fosse 2023-08-21 10:25:17 -04:00
parent 9ac3ae9ae0
commit 7175973bdd
2 changed files with 11 additions and 7 deletions

View file

@ -363,7 +363,11 @@ abstract class NanoWalletBase
}
Future<void> _updateBalance() async {
try {
balance[currency] = await _client.getBalance(_publicAddress!);
} catch (e) {
throw Exception("Failed to get balance $e");
}
await save();
}

View file

@ -716,12 +716,6 @@ Future<void> generatePubspec({
output += '\n$cwBitcoin';
}
if (hasHaven && !hasMonero) {
output += '\n$cwSharedExternal\n$cwHaven';
} else if (hasHaven) {
output += '\n$cwHaven';
}
if (hasEthereum) {
output += '\n$cwEthereum';
}
@ -734,6 +728,12 @@ Future<void> generatePubspec({
output += '\n$cwBanano';
}
if (hasHaven && !hasMonero) {
output += '\n$cwSharedExternal\n$cwHaven';
} else if (hasHaven) {
output += '\n$cwHaven';
}
final outputLines = output.split('\n');
inputLines.insertAll(dependenciesIndex + 1, outputLines);
final outputContent = inputLines.join('\n');