mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: prevent off by one error in ensureMwebAddressUpToIndexExists (#3131)
This commit is contained in:
@@ -73,7 +73,8 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
|
||||
return List.from(super.allAddresses)..addAll(mwebAddresses);
|
||||
}
|
||||
|
||||
Future<void> ensureMwebAddressUpToIndexExists(int index) async {
|
||||
Future<void> ensureMwebAddressUpToIndexExists(int _index) async {
|
||||
final index = _index + 1;
|
||||
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user