From c0fe2b00747b91ce9898605cf8e4794914062e46 Mon Sep 17 00:00:00 2001 From: moisses89 <7888669+moisses89@users.noreply.github.com> Date: Tue, 7 Nov 2023 18:46:35 +0100 Subject: [PATCH] Add test to derivation path veggining by m/ --- tests/test_ledger_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_ledger_manager.py b/tests/test_ledger_manager.py index 487255c9..5a9312d9 100644 --- a/tests/test_ledger_manager.py +++ b/tests/test_ledger_manager.py @@ -153,6 +153,11 @@ def test_add_account(self, mock_get_account_by_path: MagicMock): ledger_account = list(ledger_manager.accounts)[0] self.assertEqual(ledger_account.address, account_address) self.assertEqual(ledger_account.path, derivation_path) + # Should accept derivation paths started with master + master_derivation_path = "m/44'/60'/0'/0" + self.assertEqual( + ledger_manager.add_account(master_derivation_path), account_address + ) def test_delete_account(self): ledger_manager = LedgerManager()