Skip to content

Commit

Permalink
Don't set to min amount for AccountChange
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Apr 29, 2024
1 parent a2cbf1d commit e45c5cc
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,14 @@ impl TransactionBuilder {
}
}

let mut builder = new_amount
.map_or_else(
|| {
AccountOutputBuilder::from(input)
.with_minimum_amount(self.protocol_parameters.storage_score_parameters())
},
|amount| AccountOutputBuilder::from(input).with_amount(*amount),
)
let mut builder = AccountOutputBuilder::from(input)
.with_mana(0)
.with_account_id(account_id)
.with_foundry_counter(u32::max(highest_foundry_serial_number, input.foundry_counter()))
.with_features(features);
if let Some(amount) = new_amount {
builder = builder.with_amount(*amount);
}

// Block issuers cannot move their mana elsewhere.
if input.is_block_issuer() {
Expand Down

0 comments on commit e45c5cc

Please sign in to comment.