Skip to content

Commit

Permalink
switch signers to generic
Browse files Browse the repository at this point in the history
  • Loading branch information
esolskjaer committed Jun 5, 2024
1 parent e77a453 commit d788124
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ pub struct RequestBuilder<'a, C> {
payer: C,
// Serialized instruction data for the target RPC.
instruction_data: Option<Vec<u8>>,
signers: Vec<&'a dyn Signer>,
signers: Vec<&'a C>,
#[cfg(not(feature = "async"))]
handle: &'a Handle,
}
Expand Down Expand Up @@ -594,7 +594,7 @@ impl<'a, C: Deref<Target = impl Signer> + Clone> RequestBuilder<'a, C> {
}

#[must_use]
pub fn signer(mut self, signer: &'a dyn Signer) -> Self {
pub fn signer(mut self, signer: &'a C) -> Self {
self.signers.push(signer);
self
}
Expand All @@ -618,7 +618,7 @@ impl<'a, C: Deref<Target = impl Signer> + Clone> RequestBuilder<'a, C> {
) -> Result<Transaction, ClientError> {
let instructions = self.instructions()?;
let mut signers = self.signers.clone();
signers.push(&*self.payer);
signers.push(&self.payer);

let tx = Transaction::new_signed_with_payer(
&instructions,
Expand Down

0 comments on commit d788124

Please sign in to comment.