Skip to content

Commit 3b6d91e

Browse files
committed
Fix
1 parent 68069be commit 3b6d91e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

bitcoinutils/hdwallet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from hdwallet import HDWallet as ext_HDWallet # type: ignore
1515
from hdwallet.cryptocurrencies import Bitcoin
1616
from hdwallet.derivations import CustomDerivation
17+
from hdwallet.hds import BIP32HD
1718
from hdwallet.mnemonics import BIP39Mnemonic
1819

1920
from bitcoinutils.setup import is_mainnet
@@ -42,7 +43,7 @@ def __init__(
4243
):
4344
"""Instantiate a hdwallet object using the corresponding library with BTC"""
4445

45-
self.hdw = ext_HDWallet(cryptocurrency=Bitcoin, network='mainnet' if is_mainnet() else 'testnet')
46+
self.hdw = ext_HDWallet(cryptocurrency=Bitcoin, network='mainnet' if is_mainnet() else 'testnet', hd=BIP32HD)
4647

4748
if mnemonic:
4849
self.hdw.from_mnemonic(mnemonic=BIP39Mnemonic(mnemonic=mnemonic))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'ecdsa==0.18.0',
2525
'sympy>=1.2,<2.0',
2626
'python-bitcoinrpc>=1.0,<2.0',
27-
'hdwallet==2.2.1'
27+
'hdwallet~=3.0'
2828
],
2929
packages=['bitcoinutils'],
3030
#package_data={

0 commit comments

Comments
 (0)