Skip to content

Commit

Permalink
chore: suppress ressignment warnings when the value doesn't change
Browse files Browse the repository at this point in the history
(closes #11)
  • Loading branch information
oddlama committed Mar 8, 2023
1 parent 9640631 commit d96f451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bridge/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub fn validate_transactions(history: &[Transaction]) -> Result<()> {

// Detect re-assignments
for other in history[0..i].iter().rev() {
if other.symbol == t.symbol {
if other.symbol == t.symbol && t.value_before != t.value_after {
eprintln!(
"{}: reassignment of symbol {} to {:?}",
"warning".yellow().bold(),
Expand Down

0 comments on commit d96f451

Please sign in to comment.