Skip to content

chore: fix broken links in otterscan/api.rs #10113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/anvil/src/eth/otterscan/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn mentions_address(trace: LocalizedTransactionTrace, address: Address) -> O

/// Converts the list of traces for a transaction into the expected Otterscan format.
///
/// Follows format specified in the [`ots_traceTransaction`](https://github.com/otterscan/otterscan/blob/main/docs/custom-jsonrpc.md#ots_tracetransaction) spec.
/// Follows format specified in the [`ots_traceTransaction`](https://docs.otterscan.io/api-docs/ots-api#ots_tracetransaction) spec.
pub fn batch_build_ots_traces(traces: Vec<LocalizedTransactionTrace>) -> Vec<TraceEntry> {
traces
.into_iter()
Expand Down Expand Up @@ -350,7 +350,7 @@ impl EthApi {
/// their `gas_used`. This would be extremely inefficient in a real blockchain RPC, but we can
/// get away with that in this context.
///
/// The [original spec](https://github.com/otterscan/otterscan/blob/main/docs/custom-jsonrpc.md#ots_getblockdetails)
/// The [original spec](https://docs.otterscan.io/api-docs/ots-api#ots_getblockdetails)
/// also mentions we can hardcode `transactions` and `logsBloom` to an empty array to save
/// bandwidth, because fields weren't intended to be used in the Otterscan UI at this point.
///
Expand Down Expand Up @@ -402,7 +402,7 @@ impl EthApi {
/// Fetches all receipts for the blocks's transactions, as required by the
/// [`ots_getBlockTransactions`] endpoint spec, and returns the final response object.
///
/// [`ots_getBlockTransactions`]: https://github.com/otterscan/otterscan/blob/main/docs/custom-jsonrpc.md#ots_getblockdetails
/// [`ots_getBlockTransactions`]: https://docs.otterscan.io/api-docs/ots-api#ots_getblocktransactions
pub async fn build_ots_block_tx(
&self,
mut block: AnyRpcBlock,
Expand Down
Loading