/// Gets a block by its [BlockHash], with full transactions or only hashes.
async fn get_block_by_hash(
&self,
hash: BlockHash,
kind: BlockTransactionsKind, <--
)
...
/// Get a block by its number.
// TODO: Network associate
async fn get_block_by_number(
&self,
number: BlockNumberOrTag,
hydrate: bool, <--
)
Solution
Changing hydrate argument to kind to make methods symmetrical.
Motivation
Different args in
alloy-provider
crate:Solution
Changing
hydrate
argument tokind
to make methods symmetrical.PR Checklist