Skip to content

docs: correct etherscan url examples in Chain spec#300

Merged
mattsse merged 1 commit into
alloy-rs:mainfrom
sueun-dev:docs/etherscan-url-examples
Jul 1, 2026
Merged

docs: correct etherscan url examples in Chain spec#300
mattsse merged 1 commit into
alloy-rs:mainfrom
sueun-dev:docs/etherscan-url-examples

Conversation

@sueun-dev

Copy link
Copy Markdown
Contributor

Summary

  • The doc examples for etherscan_api_url and etherscan_base_url on Chain had trailing slashes, which contradicts the ensure_no_trailing_etherscan_url_separator test invariant that asserts no etherscan url ends with /.
  • The api url example was also the pre-V2 form. Updated both to the current mainnet values: https://api.etherscan.io/v2/api?chainid=1 and https://etherscan.io.
  • Regenerated assets/chains.schema.json, which embeds these doc comments as field descriptions.

Tests

  • cargo test --no-default-features --features std,schema,serde (schema_up_to_date, spec_up_to_date, ensure_no_trailing_etherscan_url_separator pass)
  • cargo +nightly fmt --all --check
  • cargo clippy --workspace --all-features

The examples for etherscan_api_url/etherscan_base_url had trailing
slashes, contradicting the ensure_no_trailing_etherscan_url_separator
invariant, and the api example used the pre-V2 form. Regenerate
chains.schema.json, which embeds these doc comments as descriptions.

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mattsse mattsse merged commit 8e453de into alloy-rs:main Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants