Skip to content

Commit

Permalink
return error if history contract not found
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa committed Jul 2, 2024
1 parent 446f24b commit 4b0cbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rpc/rpc/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ where
// this should not happen, only if the state of the chain is inconsistent
let Some(num) = num else {
debug!(target: "rpc::otterscan", address = ?address, "Contract not found in history state");
return Ok(None)
return Err(internal_rpc_err("contract not found in hitory state"))

Check failure on line 240 in crates/rpc/rpc/src/otterscan.rs

View workflow job for this annotation

GitHub Actions / codespell

hitory ==> history
};

let traces = self
Expand Down

0 comments on commit 4b0cbe3

Please sign in to comment.