diff --git a/components/brave_wallet/browser/internal/hd_key_utils.cc b/components/brave_wallet/browser/internal/hd_key_utils.cc index 04af08342922..1de62153bc6b 100644 --- a/components/brave_wallet/browser/internal/hd_key_utils.cc +++ b/components/brave_wallet/browser/internal/hd_key_utils.cc @@ -17,7 +17,7 @@ namespace brave_wallet { std::optional> ParseFullHDPath(std::string_view path) { auto entries = base::SplitStringPiece( path, "/", base::WhitespaceHandling::TRIM_WHITESPACE, - base::SplitResult::SPLIT_WANT_NONEMPTY); + base::SplitResult::SPLIT_WANT_ALL); if (entries.empty()) { return std::nullopt; diff --git a/components/brave_wallet/browser/solana_keyring_unittest.cc b/components/brave_wallet/browser/solana_keyring_unittest.cc index cf11f5484e17..e85c4887685b 100644 --- a/components/brave_wallet/browser/solana_keyring_unittest.cc +++ b/components/brave_wallet/browser/solana_keyring_unittest.cc @@ -107,7 +107,8 @@ TEST(SolanaKeyringUnitTest, ImportAccount) { private_key.clear(); ASSERT_TRUE(base::HexStringToBytes( - "bee602cc7dd4c1be27d8459892ab4e23f7a1d31ffde8cdd50542068ada52a201", + "bee602cc7dd4c1be27d8459892ab4e23f7a1d31ffde8cdd50542068ada52a201" + "b2d66b28055a98f8e4c19afeb026fd0c2f6755bf1830ad542d86d64b24da43c2", &private_key)); keyring.ImportAccount(private_key); EXPECT_EQ(keyring.GetImportedAccountsForTesting().size(), 2u);