xmrwallet.ops.sweep: check_account_exists(): bugfix
This commit is contained in:
parent
80d122a1d8
commit
0c4438a35d
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue