Skip to content

Commit

Permalink
refactor(sn_transfers): clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and joshuef committed Oct 4, 2023
1 parent 7dd10d9 commit b365829
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sn_transfers/src/wallet/local_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ mod tests {
use crate::{
genesis::{create_first_cash_note_from_key, GENESIS_CASHNOTE_AMOUNT},
wallet::{local_store::WALLET_DIR_NAME, KeyLessWallet},
MainPubkey, MainSecretKey, NanoTokens, SpendAddress,
MainSecretKey, NanoTokens, SpendAddress,
};
use assert_fs::TempDir;
use eyre::Result;
Expand Down Expand Up @@ -885,10 +885,13 @@ mod tests {
sender.adjust_payment_map(&mut map);

// The map should now only have the entries where store costs increased:
assert_eq!(map, BTreeMap::from([
(xor2, vec![(key2a, 10.into())]),
(xor4, vec![(key4b, 9.into())]),
]));
assert_eq!(
map,
BTreeMap::from([
(xor2, vec![(key2a, 10.into())]),
(xor4, vec![(key4b, 9.into())]),
])
);

Ok(())
}
Expand Down

0 comments on commit b365829

Please sign in to comment.