Skip to content

Commit

Permalink
rename min_utxo parameter to ada_per_unit_size
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Jan 12, 2021
1 parent eb460ac commit 1b42da7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/src/tx_builder.rs
Expand Up @@ -127,7 +127,7 @@ pub struct TransactionBuilder {
validity_start_interval: Option<Slot>,
input_types: MockWitnessSet,
mint: Option<Mint>,
constant_min_utxo_value: BigNum,
ada_per_unit_size: BigNum,
}

#[wasm_bindgen]
Expand Down Expand Up @@ -283,12 +283,12 @@ impl TransactionBuilder {

pub fn new(
linear_fee: &fees::LinearFee,
constant_min_utxo_value: &BigNum,
ada_per_unit_size: &BigNum,
pool_deposit: &BigNum, // protocol parameter
key_deposit: &BigNum, // protocol parameter
) -> Self {
Self {
constant_min_utxo_value: constant_min_utxo_value.clone(),
ada_per_unit_size: ada_per_unit_size.clone(),
key_deposit: key_deposit.clone(),
pool_deposit: pool_deposit.clone(),
fee_algo: linear_fee.clone(),
Expand Down Expand Up @@ -456,7 +456,7 @@ impl TransactionBuilder {
"Transaction with non-ada outputs is not implemented",
))
} else {
Ok(self.constant_min_utxo_value)
Ok(self.ada_per_unit_size)
}
}

Expand Down

0 comments on commit 1b42da7

Please sign in to comment.