Skip to content

Commit 64d7b21

Browse files
committed
Accept derivation path started by master key
1 parent e79d1d4 commit 64d7b21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

safe_cli/operators/hw_accounts/ledger_manager.py

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def add_account(self, derivation_path: str) -> ChecksumAddress:
7373
:param derivation_path:
7474
:return:
7575
"""
76+
# we should accept m/ or m'/ starting derivation paths
77+
if derivation_path[0:2] == "m/":
78+
derivation_path = derivation_path.replace("m/", "")
79+
7680
if not is_bip32_path(derivation_path):
7781
raise InvalidDerivationPath()
7882

0 commit comments

Comments
 (0)