Skip to content

Commit

Permalink
Reimplement with_params method for TxBuilder (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTurner authored Jul 26, 2023
1 parent f93366f commit 464db61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fuel-tx/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ impl<Tx> TransactionBuilder<Tx> {
self.params.chain_id()
}

pub fn with_params(&mut self, params: ConsensusParameters) -> &mut Self {
self.params = params;
self
}

pub fn with_tx_params(&mut self, tx_params: TxParameters) -> &mut Self {
self.params.tx_params = tx_params;
self
Expand Down

0 comments on commit 464db61

Please sign in to comment.