Browse Source

xmrwallet.ops.sweep: `check_account_exists()`: bugfix

The MMGen Project 1 month ago
parent
commit
0c4438a35d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mmgen/xmrwallet/ops/sweep.py

+ 2 - 2
mmgen/xmrwallet/ops/sweep.py

@@ -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(