Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix the return type of AccountsFile::account_matches_owners() (#30354)
Browse files Browse the repository at this point in the history
Update AccountsFile::account_matches_owners() to return the matched index
  • Loading branch information
yhchiang-sol authored Feb 16, 2023
1 parent aeb6df3 commit ce4251b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/accounts_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl AccountsFile {
&self,
offset: usize,
owners: &[&Pubkey],
) -> Result<(), MatchAccountOwnerError> {
) -> Result<usize, MatchAccountOwnerError> {
match self {
Self::AppendVec(av) => av.account_matches_owners(offset, owners),
}
Expand Down

0 comments on commit ce4251b

Please sign in to comment.