Skip to content

Commit

Permalink
Fixes typo + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 27, 2024
1 parent 9e14e2f commit ad1b001
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion crates/shielded_token/src/vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,12 @@ mod shielded_token_tests {

// Changing unknown masp keys is not allowed
#[test]
fn test_unallowed_masp_keys_rejected(random_masp_key in arb_account_storage_key(MASP).prop_filter("MASP valid key", |key| !(is_masp_transfer_key(key) || is_masp_token_map_key(key) ))) {
fn test_unallowed_masp_keys_rejected(
random_masp_key in arb_account_storage_key(MASP).prop_filter(
"MASP valid key",
|key| !(is_masp_transfer_key(key) || is_masp_token_map_key(key)
))
) {
let mut state = TestState::default();
namada_parameters::init_test_storage(&mut state).unwrap();
let verifiers = Default::default();
Expand Down
10 changes: 5 additions & 5 deletions crates/tests/src/integration/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ fn multiple_unfetched_txs_same_block() -> Result<()> {

node.clear_results();
node.submit_txs(txs);
// If empty than failed in process proposal
// If empty then failed in process proposal
assert!(!node.tx_result_codes.lock().unwrap().is_empty());
node.assert_success();

Expand Down Expand Up @@ -1648,7 +1648,7 @@ fn expired_masp_tx() -> Result<()> {
node.submit_txs(vec![tx.to_bytes()]);
{
let codes = node.tx_result_codes.lock().unwrap();
// If empty than failed in process proposal
// If empty then failed in process proposal
assert!(!codes.is_empty());

for code in codes.iter() {
Expand Down Expand Up @@ -3566,7 +3566,7 @@ fn identical_output_descriptions() -> Result<()> {
// Check that the batch was successful
{
let codes = node.tx_result_codes.lock().unwrap();
// If empty than failed in process proposal
// If empty then failed in process proposal
assert!(!codes.is_empty());

for code in codes.iter() {
Expand Down Expand Up @@ -3859,7 +3859,7 @@ fn masp_batch() -> Result<()> {
// Check the block result
{
let codes = node.tx_result_codes.lock().unwrap();
// If empty than failed in process proposal
// If empty then failed in process proposal
assert!(!codes.is_empty());

// Both batches must succeed
Expand Down Expand Up @@ -4091,7 +4091,7 @@ fn masp_atomic_batch() -> Result<()> {
// Check the block result
{
let codes = node.tx_result_codes.lock().unwrap();
// If empty than failed in process proposal
// If empty then failed in process proposal
assert!(!codes.is_empty());

// Both batches must fail
Expand Down

0 comments on commit ad1b001

Please sign in to comment.