Skip to content

Commit

Permalink
increase code coverage - fix nft_update_attributes with no attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Apr 30, 2024
1 parent c78ba3f commit f50de7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn set_state_test() {
.check_account(third)
.nonce(3)
.balance(50)
.esdt_nft_balance_and_attributes(NFT_ID, 2, 1, ())
.esdt_nft_balance_and_attributes(NFT_ID, 2, 1, "")
.commit();

let fourth_uris = FOURTH_URIS
Expand All @@ -171,7 +171,7 @@ fn set_state_test() {
.check_account(fourth)
.nonce(3)
.balance(50)
.esdt_nft_balance_and_attributes(NFT_ID, 2, 1, managed_buffer!(FOURTH_ATTRIBUTES))
.esdt_nft_balance_and_attributes(NFT_ID, 2, 1, FOURTH_ATTRIBUTES)
.commit();

world
Expand All @@ -183,7 +183,7 @@ fn set_state_test() {
.check_account(fifth)
.nonce(2)
.balance(30)
.esdt_nft_balance_and_attributes(NFT_ID, 5, 0, ());
.esdt_nft_balance_and_attributes(NFT_ID, 5, 0, "");

// using no commit should drop the value naturally
world
Expand Down

0 comments on commit f50de7d

Please sign in to comment.