Skip to content

Commit

Permalink
Insert mana requirement in first position
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Mar 27, 2024
1 parent 4a3d5e6 commit 64a0395
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl TransactionBuilder {
should_recalculate |= self.get_inputs_for_mana_balance()?;

if should_recalculate && !self.requirements.contains(&Requirement::Mana) {
self.requirements.push(Requirement::Mana);
self.requirements.insert(0, Requirement::Mana);
}

Ok(())
Expand Down

0 comments on commit 64a0395

Please sign in to comment.