Skip to content

Commit

Permalink
cargo fmt (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Mar 14, 2024
2 parents 2c8068f + db7ae33 commit 626cbfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pallets/ocex/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,10 @@ fn test_trade_between_two_accounts_with_balance() {
//check has 20 pdex now
let encoded = state.get(&alice_account_id.0.to_vec()).unwrap().unwrap();
let account_info: BTreeMap<AssetId, Decimal> = BTreeMap::decode(&mut &encoded[..]).unwrap();
assert_eq!(account_info.get(&AssetId::Polkadex).unwrap(), &Decimal::from_f64(19.98).unwrap());
assert_eq!(
account_info.get(&AssetId::Polkadex).unwrap(),
&Decimal::from_f64(19.98).unwrap()
);

//check if bob has 20 less pdex
let encoded = state.get(&bob_account_id.0.to_vec()).unwrap().unwrap();
Expand Down

0 comments on commit 626cbfd

Please sign in to comment.