Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Post Mint Reveal NFT Example Broken #13521

Closed
PhatStraw opened this issue Jun 2, 2024 · 3 comments · Fixed by #13576
Closed

[Bug] Post Mint Reveal NFT Example Broken #13521

PhatStraw opened this issue Jun 2, 2024 · 3 comments · Fixed by #13576
Assignees
Labels
bug Something isn't working

Comments

@PhatStraw
Copy link

PhatStraw commented Jun 2, 2024

🐛 Bug

18 of the 29 test are failing.

To reproduce

git clone https://github.com/aptos-labs/aptos-core.git
cd aptos-move/move-examples/post_mint_reveal_nft
aptos move compile
aptos move test

Stack trace/error message

Running Move unit tests
[ PASS    ] 0x3::big_vector::big_vector_append_edge_case_test
[ PASS    ] 0x3::bucket_table::hash_map_bucket_index_test
[ PASS    ] 0x3::big_vector::big_vector_append_test
[ PASS    ] 0x3::big_vector::big_vector_empty_contains
[ PASS    ] 0x3::bucket_table::hash_map_split_test
[ PASS    ] 0x3::bucket_table::hash_map_test
[ PASS    ] 0x3::big_vector::big_vector_index_of_test
[ PASS    ] 0x3::big_vector::big_vector_remove_and_reverse_test
[ PASS    ] 0x3::big_vector::big_vector_swap_test
[ FAIL    ] 0x3::minting::invalid_add_to_whitelist
[ FAIL    ] 0x3::minting::invalid_set_minting_time_and_price
[ PASS    ] 0x3::minting::invalid_set_treasury_address
[ PASS    ] 0x3::big_vector::big_vector_test
[ FAIL    ] 0x3::minting::test_account_not_on_whitelist
[ FAIL    ] 0x3::minting::test_acquire_signer
[ FAIL    ] 0x3::minting::test_adding_token_uris_exceeds_collection_maximum
[ FAIL    ] 0x3::minting::test_all_tokens_minted
[ FAIL    ] 0x3::minting::test_amount_exceeds_mint_allowed_public
[ FAIL    ] 0x3::minting::test_amount_exceeds_mint_allowed_whitelisted
[ FAIL    ] 0x3::minting::test_duplicate_token_uris
[ FAIL    ] 0x3::minting::test_exchange_before_minting_ends
[ FAIL    ] 0x3::minting::test_happy_path
[ FAIL    ] 0x3::minting::test_invalid_add_token_uri
[ FAIL    ] 0x3::minting::test_mint_before_set_up
[ FAIL    ] 0x3::minting::test_minting_source_certificate_exceeds_collection_maximum
[ FAIL    ] 0x3::minting::test_multi_stage_whitelist_account_not_on_whitelist
[ FAIL    ] 0x3::minting::test_multi_stage_whitelist_happy_path
[ FAIL    ] 0x3::minting::test_multi_stage_whitelist_mint_amount_exceeds
[ FAIL    ] 0x3::minting::test_update_public_minting_time

Test failures:

Failures in 0x3::minting:

┌── invalid_add_to_whitelist ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65541 originating in the module 0x3::whitelist but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::invalid_add_to_whitelist(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1095)
│ 
└──────────────────


┌── invalid_set_minting_time_and_price ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65538 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::invalid_set_minting_time_and_price(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:923)
│ 
└──────────────────


┌── test_account_not_on_whitelist ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327686 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_account_not_on_whitelist(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1046)
│ 
└──────────────────


┌── test_acquire_signer ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test was not expected to error, but it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_acquire_signer(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1183)
│ 
└──────────────────


┌── test_adding_token_uris_exceeds_collection_maximum ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65541 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_adding_token_uris_exceeds_collection_maximum(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:837)
│ 
└──────────────────


┌── test_all_tokens_minted ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327687 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_all_tokens_minted(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1119)
│ 
└──────────────────


┌── test_amount_exceeds_mint_allowed_public ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65546 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_amount_exceeds_mint_allowed_public(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:988)
│ 
└──────────────────


┌── test_amount_exceeds_mint_allowed_whitelisted ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65540 originating in the module 0x3::whitelist but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_amount_exceeds_mint_allowed_whitelisted(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:962)
│ 
└──────────────────


┌── test_duplicate_token_uris ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65549 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_duplicate_token_uris(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1204)
│ 
└──────────────────


┌── test_exchange_before_minting_ends ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327692 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_exchange_before_minting_ends(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:861)
│ 
└──────────────────


┌── test_happy_path ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test was not expected to error, but it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_happy_path(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:733)
│ 
└──────────────────


┌── test_invalid_add_token_uri ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65540 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_invalid_add_token_uri(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1149)
│ 
└──────────────────


┌── test_mint_before_set_up ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327689 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_mint_before_set_up(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:943)
│ 
└──────────────────


┌── test_minting_source_certificate_exceeds_collection_maximum ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327687 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_minting_source_certificate_exceeds_collection_maximum(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1016)
│ 
└──────────────────


┌── test_multi_stage_whitelist_account_not_on_whitelist ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 327686 originating in the module 0x3::minting but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::set_up_multi_stage_whitelist_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1219)
│ 	minting::test_multi_stage_whitelist_account_not_on_whitelist(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1305-1311)
│ 
└──────────────────


┌── test_multi_stage_whitelist_happy_path ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test was not expected to error, but it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::set_up_multi_stage_whitelist_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1219)
│ 	minting::test_multi_stage_whitelist_happy_path(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1251-1257)
│ 
└──────────────────


┌── test_multi_stage_whitelist_mint_amount_exceeds ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test did not error as expected. Expected test to abort with code 65540 originating in the module 0x3::whitelist but instead it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::set_up_multi_stage_whitelist_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1219)
│ 	minting::test_multi_stage_whitelist_mint_amount_exceeds(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1332-1338)
│ 
└──────────────────


┌── test_update_public_minting_time ──────
│ error[E11001]: test failure
│     ┌─ /aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:229:9
│     │
│ 210 │     public entry fun set_collection_config_and_create_collection(
│     │                      ------------------------------------------- In this function in 0x3::minting
│     ·
│ 229 │         assert!(signer::address_of(admin) == @post_mint_reveal_nft, error::permission_denied(ENOT_AUTHORIZED));
│     │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test was not expected to error, but it aborted with code 327681 originating in the module 0x3::minting rooted here
│ 
│ 
│ stack trace
│ 	minting::set_up_test(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:677-695)
│ 	minting::test_update_public_minting_time(/aptos-core/aptos-move/move-examples/post_mint_reveal_nft/sources/minting.move:1070)
│ 
└──────────────────

Test result: FAILED. Total tests: 29; passed: 11; failed: 18
{
  "Error": "Move unit tests failed"
}

Expected Behavior

Expect to receive PASS for all test

System information

Please complete the following information:

  • Aptos Core Version: aptos 3.4.1
  • Rust Version: rustc 1.75.0 (82e1608df 2023-12-21)
  • Computer OS: Catalina

Additional context


Move.toml
[package]
name = "PostMint"
version = "0.0.0"

[dependencies]
AptosFramework = { local = "../../framework/aptos-framework" }
AptosToken = { local = "../../framework/aptos-token" }

[addresses]
aptos_framework = "0x1"
post_mint_reveal_nft = "0x3"***

Followed instructions on getting started, followed by clone this repo and attempting to run post_mint_reveal_nft example project.

@PhatStraw PhatStraw added the bug Something isn't working label Jun 2, 2024
@drstevenbrule
Copy link
Contributor

Can you please output aptos info? This seems to work fine on MacOS for me.

@Alexzander-Stone
Copy link
Contributor

Hi @PhatStraw, I just created a PR to address the issue. Feel free to check it out here. 😌

@Alexzander-Stone Alexzander-Stone linked a pull request Jun 5, 2024 that will close this issue
21 tasks
@PhatStraw
Copy link
Author

Hi @PhatStraw, I just created a PR to address the issue. Feel free to check it out here. 😌

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants