Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed May 9, 2024
1 parent fd8375f commit 9483796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/katana/storage/provider/src/providers/fork/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ impl ContractClassProvider for SharedStateProvider {
/// A helper function to convert a contract/class not found error returned by the RPC provider into
/// a `Option::None`.
///
/// This is to follow the Katana's provider APIs where 'not found'/'non-existent' should be
/// represented as `Option::None`.
/// This is to follow the Katana's provider APIs convention where 'not found'/'non-existent' should
/// be represented as `Option::None`.
fn handle_not_found_err<T>(result: Result<T, BackendError>) -> Result<Option<T>, BackendError> {
match result {
Ok(value) => Ok(Some(value)),
Expand Down

0 comments on commit 9483796

Please sign in to comment.