Skip to content

Commit

Permalink
📝 fix inconsistency inside readme of example3
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan authored and lukacan committed Jan 12, 2024
1 parent 5d0f00d commit 787aeff
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions examples/fuzz_example3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,15 @@ if let Some(escrow) = pre_ix.escrow {
} else if recepient_token_account_pre.amount + escrow.amount != recepient_token_account_post.amount {

if recepient_token_account_pre.amount + escrow.amount > recepient_token_account_post.amount {

eprintln!("Amount Mismatch (Recipient withdrew LESS) by: {}", (recepient_token_account_pre.amount + escrow.amount) - recepient_token_account_post.amount);

return Err("Recipient withdrew LESS");
} else {

eprintln!("Amount Mismatch (Recipient withdrew MORE) by: {}", recepient_token_account_post.amount - (recepient_token_account_pre.amount + escrow.amount));
// print info within debug mode
// eprintln!("Before: {}", recepient_token_account_pre.amount);
return Err("Recipient withdrew MORE");

}

eprintln!("Before: {}", recepient_token_account_pre.amount);
eprintln!("After: {}", recepient_token_account_post.amount);
eprintln!("Expected: {}", recepient_token_account_pre.amount + escrow.amount);
return Err("Transferred amount mismatch");
}
}
}
}
Expand Down

0 comments on commit 787aeff

Please sign in to comment.