Skip to content

Commit

Permalink
sdk: add impl to shielded transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 16, 2024
1 parent 38efe45 commit 93d7e88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/sdk/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,18 @@ pub struct TxShieldingTransfer<C: NamadaTypes = SdkTypes> {
pub tx_code_path: PathBuf,
}

impl<C: NamadaTypes> TxBuilder<C> for TxShieldingTransfer<C> {
fn tx<F>(self, func: F) -> Self
where
F: FnOnce(Tx<C>) -> Tx<C>,
{
TxShieldingTransfer {
tx: func(self.tx),
..self
}
}
}

impl TxShieldingTransfer {
/// Build a transaction from this builder
pub async fn build(
Expand Down

0 comments on commit 93d7e88

Please sign in to comment.