xmrwallet.ops.sweep: check_account_exists(): bugfix

This commit is contained in:
The MMGen Project 2026-02-02 09:56:58 +00:00
commit 0c4438a35d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -165,8 +165,8 @@ class OpSweep(OpMixinSpec, OpWallet):
def check_account_exists(self, accts_data, idx):
max_acct = len(accts_data['subaddress_accounts']) - 1
if self.account > max_acct:
die(2, f'{self.account}: requested account index out of bounds (>{max_acct})')
if idx > max_acct:
die(2, f'{idx}: requested account index out of bounds (>{max_acct})')
async def main(self):
gmsg(