Skip to content

Commit

Permalink
feat: allow to only fill a transaction request (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
leruaa authored Apr 22, 2024
1 parent 1c07aae commit 49e4b1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/provider/src/fillers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ where
) -> FillProvider<JoinFill<F, Other>, P, T, N> {
self.filler.join_with(other).layer(self.inner)
}

/// Fills the transaction request, using the configured fillers
pub async fn fill(&self, tx: N::TransactionRequest) -> TransportResult<SendableTx<N>>
where
N::TxEnvelope: Clone,
{
self.filler.prepare_and_fill(self, SendableTx::Builder(tx)).await
}
}

#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
Expand Down

0 comments on commit 49e4b1c

Please sign in to comment.