alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
794 stars 155 forks source link

feat: add `Default` for `Sealed<T>` #755

Closed emhane closed 1 month ago

emhane commented 1 month ago

Motivation

Default is required trait bound for reth integration of Sealed<T>. Ref https://github.com/paradigmxyz/reth/issues/11123.

Solution

Derives Default for Sealed<T>.

PR Checklist

emhane commented 1 month ago

this is also problematic, we can only safely do this if we seal in the manual default impl

same here, pls open issue in reth to manual impl Default for all types that use SealedBlock