From ce4251be99dc91509d052acfc7625c687d7d7f24 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang <93241502+yhchiang-sol@users.noreply.github.com> Date: Wed, 15 Feb 2023 19:34:36 -0800 Subject: [PATCH] Fix the return type of AccountsFile::account_matches_owners() (#30354) Update AccountsFile::account_matches_owners() to return the matched index --- runtime/src/accounts_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_file.rs b/runtime/src/accounts_file.rs index e14483a719..7f82f6ff04 100644 --- a/runtime/src/accounts_file.rs +++ b/runtime/src/accounts_file.rs @@ -74,7 +74,7 @@ impl AccountsFile { &self, offset: usize, owners: &[&Pubkey], - ) -> Result<(), MatchAccountOwnerError> { + ) -> Result { match self { Self::AppendVec(av) => av.account_matches_owners(offset, owners), }