Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Dec 19, 2024
1 parent ee364fb commit 72cddd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/nfts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4144,10 +4144,10 @@ fn mint_requires_deposit_should_works() {
assert_eq!(Balances::reserved_balance(&account(1)), 1 + 1); // 1 - item deposit, 1 - balance deposit
assert_eq!(Nfts::owner(0, 42).unwrap(), account(1));

// Minting for accounts with a non-zero balance requires no additional reserves.
// Mint for accounts with a non-zero balance requires no additional reserves.
assert_ok!(Nfts::mint(RuntimeOrigin::signed(account(1)), 0, 43, account(1), None));
assert_eq!(AccountBalance::<Test>::get(0, account(1)), Some((2, (account(1), 1))));
assert_eq!(Balances::reserved_balance(&account(1)), 2 + 1); // 2 - item deposit, 2 - balance deposit
assert_eq!(Balances::reserved_balance(&account(1)), 2 + 1); // 2 - item deposit, 1 - balance deposit
assert_eq!(Nfts::owner(0, 43).unwrap(), account(1));

// Increase the reserved balance on minting for a new `AccountBalance` record.
Expand All @@ -4156,7 +4156,7 @@ fn mint_requires_deposit_should_works() {
assert_eq!(Balances::reserved_balance(&account(1)), 3 + 2); // 3 - item deposit, 2 - balance deposit
assert_eq!(Nfts::owner(0, 44).unwrap(), account(2));

// Minting by an admin.
// Mint by an admin.
assert_ok!(Nfts::set_team(
RuntimeOrigin::signed(account(1)),
0,
Expand Down

0 comments on commit 72cddd5

Please sign in to comment.