From 8245271d7f8c4632427a3750f8f6f6025b486191 Mon Sep 17 00:00:00 2001 From: Matt Whitlock Date: Thu, 9 Nov 2023 18:09:27 -0500 Subject: [PATCH] wallet: avoid IndexError in _is_my_bip32_path --- src/jmclient/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jmclient/wallet.py b/src/jmclient/wallet.py index 123686f..caede52 100644 --- a/src/jmclient/wallet.py +++ b/src/jmclient/wallet.py @@ -2208,7 +2208,7 @@ class BIP32Wallet(BaseWallet): self._ENGINE def _is_my_bip32_path(self, path): - return path[0] == self._key_ident + return len(path) > 0 and path[0] == self._key_ident def is_standard_wallet_script(self, path): return self._is_my_bip32_path(path)