diff --git a/crates/eips/src/eip7685.rs b/crates/eips/src/eip7685.rs index e3c4626c8b3..3d91f30fc27 100644 --- a/crates/eips/src/eip7685.rs +++ b/crates/eips/src/eip7685.rs @@ -22,6 +22,11 @@ pub const EMPTY_REQUESTS_HASH: B256 = pub struct Requests(Vec); impl Requests { + /// Construct a new [`Requests`] container with the given capacity. + pub fn with_capacity(capacity: usize) -> Self { + Self(Vec::with_capacity(capacity)) + } + /// Construct a new [`Requests`] container. /// /// This function assumes that the request type byte is already included as the