Skip to content

Commit

Permalink
Don't set with_minimum_amount for accounts when they have a staking f…
Browse files Browse the repository at this point in the history
…eature (#2240)
  • Loading branch information
Thoralf-M authored Apr 29, 2024
1 parent 1a231ee commit 0284950
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ impl TransactionBuilder {
.with_features(features);
match new_amount {
Some(amount) => builder = builder.with_amount(amount),
None => builder = builder.with_minimum_amount(self.protocol_parameters.storage_score_parameters()),
None => {
if input.features().staking().is_none() {
builder = builder.with_minimum_amount(self.protocol_parameters.storage_score_parameters());
}
}
}

// Block issuers cannot move their mana elsewhere.
Expand Down

0 comments on commit 0284950

Please sign in to comment.