Skip to content

Commit

Permalink
Merge pull request #3809 from anoma/fraccaman/tx-builder-memo
Browse files Browse the repository at this point in the history
add memo builder fun to tx builder
  • Loading branch information
mergify[bot] authored Sep 12, 2024
2 parents b0b41dc + 605fa4c commit ac6b501
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sdk/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2492,6 +2492,13 @@ pub trait TxBuilder<C: NamadaTypes>: Sized {
..x
})
}
/// Change memo
fn memo(self, memo: Vec<u8>) -> Self {
self.tx(|x| Tx {
memo: Some(memo),
..x
})
}
}

impl<C: NamadaTypes> TxBuilder<C> for Tx<C> {
Expand Down

0 comments on commit ac6b501

Please sign in to comment.