fix: prevent off by one error in ensureMwebAddressUpToIndexExists (#3131)

This commit is contained in:
cyan
2026-03-25 21:30:39 +01:00
committed by GitHub
parent 3917e55f46
commit 2010ef1b44
@@ -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;
}