Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(network-primitives): add header num_hash helper#4046

Merged
mattsse merged 1 commit into
alloy-rs:mainfrom
mattsse:mattsse/header-response-num-hash
Jun 24, 2026
Merged

feat(network-primitives): add header num_hash helper#4046
mattsse merged 1 commit into
alloy-rs:mainfrom
mattsse:mattsse/header-response-num-hash

Conversation

@mattsse

@mattsse mattsse commented Jun 24, 2026

Copy link
Copy Markdown
Member

Summary

Adds a default HeaderResponse::num_hash() helper that returns BlockNumHash::new(self.number(), self.hash()).

Adds a focused rpc-types-eth regression test against Header.

Impact

RPC header consumers can retrieve a header number/hash pair without manually pairing number() and hash(), matching the existing transaction and receipt block num-hash helpers.

@mattsse mattsse merged commit 7e7f86a into alloy-rs:main Jun 24, 2026
28 of 30 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Alloy Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant