From efc30485f014566379270dd447296cc1b80a3610 Mon Sep 17 00:00:00 2001 From: Anton Paymyshev Date: Wed, 27 Nov 2024 22:24:43 +0700 Subject: [PATCH] fix ci --- components/brave_wallet/browser/internal/hd_key_utils.cc | 2 +- components/brave_wallet/browser/solana_keyring_unittest.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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);