Skip to content

Add with_signer_ref helper #16232

Closed
@mattsse

Description

@mattsse

Describe the feature

we have:

/// Returns the [`Recovered`] transaction with the given sender.
///
/// Note: assumes the given signer is the signer of this transaction.
#[auto_impl(keep_default_for(&, Arc))]
fn with_signer(self, signer: Address) -> Recovered<Self> {
Recovered::new_unchecked(self, signer)
}

we can also introduce with_signer_ref that returns Recovered<&Self>

Additional context

No response

Metadata

Metadata

Labels

A-sdkRelated to reth's use as a libraryC-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions