mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
more fixes
This commit is contained in:
parent
9ac3ae9ae0
commit
7175973bdd
2 changed files with 11 additions and 7 deletions
|
@ -363,7 +363,11 @@ abstract class NanoWalletBase
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _updateBalance() async {
|
Future<void> _updateBalance() async {
|
||||||
|
try {
|
||||||
balance[currency] = await _client.getBalance(_publicAddress!);
|
balance[currency] = await _client.getBalance(_publicAddress!);
|
||||||
|
} catch (e) {
|
||||||
|
throw Exception("Failed to get balance $e");
|
||||||
|
}
|
||||||
await save();
|
await save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -716,12 +716,6 @@ Future<void> generatePubspec({
|
||||||
output += '\n$cwBitcoin';
|
output += '\n$cwBitcoin';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasHaven && !hasMonero) {
|
|
||||||
output += '\n$cwSharedExternal\n$cwHaven';
|
|
||||||
} else if (hasHaven) {
|
|
||||||
output += '\n$cwHaven';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasEthereum) {
|
if (hasEthereum) {
|
||||||
output += '\n$cwEthereum';
|
output += '\n$cwEthereum';
|
||||||
}
|
}
|
||||||
|
@ -734,6 +728,12 @@ Future<void> generatePubspec({
|
||||||
output += '\n$cwBanano';
|
output += '\n$cwBanano';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hasHaven && !hasMonero) {
|
||||||
|
output += '\n$cwSharedExternal\n$cwHaven';
|
||||||
|
} else if (hasHaven) {
|
||||||
|
output += '\n$cwHaven';
|
||||||
|
}
|
||||||
|
|
||||||
final outputLines = output.split('\n');
|
final outputLines = output.split('\n');
|
||||||
inputLines.insertAll(dependenciesIndex + 1, outputLines);
|
inputLines.insertAll(dependenciesIndex + 1, outputLines);
|
||||||
final outputContent = inputLines.join('\n');
|
final outputContent = inputLines.join('\n');
|
||||||
|
|
Loading…
Reference in a new issue