Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Feb 26, 2024
1 parent 4f00d7c commit 9ff84eb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl InputSelection {
let features = input.features().iter().filter(|feature| !feature.is_sender()).cloned();

let mut builder = AccountOutputBuilder::from(input)
.with_amount_or_minimum(input.amount(), self.protocol_parameters.storage_score_parameters())
.with_account_id(account_id)
.with_foundry_counter(u32::max(highest_foundry_serial_number, input.foundry_counter()))
.with_features(features);
Expand All @@ -67,9 +68,7 @@ impl InputSelection {
)?)
}

let output = builder
.with_amount_or_minimum(input.amount(), self.protocol_parameters.storage_score_parameters())
.finish_output()?;
let output = builder.finish_output()?;

log::debug!("Automatic transition of {output_id:?}/{account_id:?}");

Expand Down Expand Up @@ -104,9 +103,9 @@ impl InputSelection {
let features = input.features().iter().filter(|feature| !feature.is_sender()).cloned();

let output = NftOutputBuilder::from(input)
.with_amount_or_minimum(input.amount(), self.protocol_parameters.storage_score_parameters())
.with_nft_id(nft_id)
.with_features(features)
.with_amount_or_minimum(input.amount(), self.protocol_parameters.storage_score_parameters())
.finish_output()?;

log::debug!("Automatic transition of {output_id:?}/{nft_id:?}");
Expand Down

0 comments on commit 9ff84eb

Please sign in to comment.