diff --git a/crates/consensus/src/transaction/eip1559.rs b/crates/consensus/src/transaction/eip1559.rs index 4bd890e23c0..3d09bc93a5b 100644 --- a/crates/consensus/src/transaction/eip1559.rs +++ b/crates/consensus/src/transaction/eip1559.rs @@ -153,11 +153,7 @@ impl TxEip1559 { /// /// If `with_header` is `true`, the payload length will include the RLP header length. /// If `with_header` is `false`, the payload length will not include the RLP header length. - pub(crate) fn encoded_len_with_signature( - &self, - signature: &Signature, - with_header: bool, - ) -> usize { + pub fn encoded_len_with_signature(&self, signature: &Signature, with_header: bool) -> usize { // this counts the tx fields and signature fields let payload_length = self.fields_len() + signature.rlp_vrs_len(); diff --git a/crates/consensus/src/transaction/eip2930.rs b/crates/consensus/src/transaction/eip2930.rs index 5cc576861d4..621dd15edad 100644 --- a/crates/consensus/src/transaction/eip2930.rs +++ b/crates/consensus/src/transaction/eip2930.rs @@ -131,11 +131,7 @@ impl TxEip2930 { /// /// If `with_header` is `true`, the payload length will include the RLP header length. /// If `with_header` is `false`, the payload length will not include the RLP header length. - pub(crate) fn encoded_len_with_signature( - &self, - signature: &Signature, - with_header: bool, - ) -> usize { + pub fn encoded_len_with_signature(&self, signature: &Signature, with_header: bool) -> usize { // this counts the tx fields and signature fields let payload_length = self.fields_len() + signature.rlp_vrs_len(); diff --git a/crates/consensus/src/transaction/eip4844.rs b/crates/consensus/src/transaction/eip4844.rs index 18d2dfaae62..4c00cbfc825 100644 --- a/crates/consensus/src/transaction/eip4844.rs +++ b/crates/consensus/src/transaction/eip4844.rs @@ -493,11 +493,7 @@ impl TxEip4844 { /// /// If `with_header` is `true`, the payload length will include the RLP header length. /// If `with_header` is `false`, the payload length will not include the RLP header length. - pub(crate) fn encoded_len_with_signature( - &self, - signature: &Signature, - with_header: bool, - ) -> usize { + pub fn encoded_len_with_signature(&self, signature: &Signature, with_header: bool) -> usize { // this counts the tx fields and signature fields let payload_length = self.fields_len() + signature.rlp_vrs_len(); diff --git a/crates/consensus/src/transaction/eip7702.rs b/crates/consensus/src/transaction/eip7702.rs index e8934d474d3..e852cee0ab0 100644 --- a/crates/consensus/src/transaction/eip7702.rs +++ b/crates/consensus/src/transaction/eip7702.rs @@ -161,11 +161,7 @@ impl TxEip7702 { /// /// If `with_header` is `true`, the payload length will include the RLP header length. /// If `with_header` is `false`, the payload length will not include the RLP header length. - pub(crate) fn encoded_len_with_signature( - &self, - signature: &Signature, - with_header: bool, - ) -> usize { + pub fn encoded_len_with_signature(&self, signature: &Signature, with_header: bool) -> usize { // this counts the tx fields and signature fields let payload_length = self.fields_len() + signature.rlp_vrs_len(); diff --git a/crates/consensus/src/transaction/legacy.rs b/crates/consensus/src/transaction/legacy.rs index 4b55bea77b5..6b2fb66ff22 100644 --- a/crates/consensus/src/transaction/legacy.rs +++ b/crates/consensus/src/transaction/legacy.rs @@ -118,7 +118,7 @@ impl TxLegacy { /// Returns what the encoded length should be, if the transaction were RLP encoded with the /// given signature. - pub(crate) fn encoded_len_with_signature(&self, signature: &Signature) -> usize { + pub fn encoded_len_with_signature(&self, signature: &Signature) -> usize { let payload_length = self.fields_len() + signature.rlp_vrs_len(); Header { list: true, payload_length }.length() + payload_length }