Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnaveira committed Jan 15, 2024
1 parent 9bb8bdf commit 1c60c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dan_layer/engine/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -870,13 +870,13 @@ mod basic_nft {
result.finalize.result.expect("execution failed");

// sparkle_nft.get_non_fungibles_from_bucket()
let nfts_from_bucket = result.finalize.execution_results[1]
let nfts_from_bucket = result.finalize.execution_results[0]
.decode::<Vec<NonFungible>>()
.unwrap();
assert_eq!(nfts_from_bucket.len(), 4);

// sparkle_nft.get_non_fungibles_from_vault()
let nfts_from_bucket = result.finalize.execution_results[2]
let nfts_from_bucket = result.finalize.execution_results[1]
.decode::<Vec<NonFungible>>()
.unwrap();
assert_eq!(nfts_from_bucket.len(), 4);
Expand Down

0 comments on commit 1c60c30

Please sign in to comment.