Error on Mint NFT move file on example
{ "Error": "Simulation failed with status: Move abort in 0x1::simple_map: 0x10002" }
mint_nft.move file needs more explanation , I wasted my hours solving 0x60001 problem opened here before and now jumped on this one. I couldn't see anyone on discord to help as well.
@ozgur3512 0x10002 means key doesn't exist [code]. The first 1 is the error category and the 2 is the hex encoding of the constant error code in source file. I think we are add more documentation to the example cc: @chloeqjz
I suppose we should display the error name instead of the error code here. something went wrong with the simulation API ?@wrwg @banool
Yes but the minting.move example on files is not working so why is it there
I have the same problem, pls help. @chloeqjz @areshand
@ozgur3512 on this problem, do you have any progress now?
No update on my side, probably not going to bother more until aptos gets stable
hey @ozgur3512 pls create a bug report issue. Otherwise, I have no idea of how to reproduce the error you reported here.
hey can you guys give guidance on how we can reproduce the errors? @songliling @ozgur3512
@chloeqjz. Hi, The following is my operation steps, can not publish successfully, can you give me a correct publishing steps?
- run a local node
- aptos account fund-with-faucet --account 'default_address' --amount 1000000000
- aptos move compile --named-addresses mint_nft=default
- aptos move publish --named-addresses mint_nft=default
- "Error": "Simulation failed with status: Move abort in 0x1::resource_account: 0x60001"
- modify mint_nft.move: 83 line of code @0xcafe -> 0x'default_address'
- aptos account create-resource-account --seed 1
- aptos move compile --named-addresses mint_nft=default
- aptos move publish --named-addresses mint_nft=default
- "Error": "Simulation failed with status: Move abort in 0x1::simple_map: 0x10002"
@chloeqjz Thank you for your reply, I solved the error problem, the more reason is that I don't understand the mechanism of aptos, I modified the contract code to ensure that it can run correctly
@chloeqjz Thank you for your reply, I solved the error problem, the more reason is that I don't understand the mechanism of aptos, I modified the contract code to ensure that it can run correctly
Thanks for your feedback! We will run thru the steps ourselves, and update the documentation to make it less confusing : )
to address this issue, we
- added an explicit error message to the resource_account module: https://github.com/aptos-labs/aptos-core/pull/5378
- added an command to run
create_resource_account_and_publish_package: https://github.com/aptos-labs/aptos-core/pull/5354 - updated the NFT tutorial to be less confusing: https://github.com/aptos-labs/aptos-core/pull/5388
Can anybody describe me how to solve "Simulation failed with status: Move abort in 0x1::resource_account: 0x60001" issue? Please help me. Thanks in advance.
Can anybody describe me how to solve "Simulation failed with status: Move abort in 0x1::resource_account: 0x60001" issue? Please help me. Thanks in advance.
Hi, it means that the specified resource account is not created by the specified source account. If you rebase off main, you'll see an updated explicit error message that says EUNAUTHORIZED_NOT_OWNER.
@chloeqjz Thank you for your reply, I solved the error problem, the more reason is that I don't understand the mechanism of aptos, I modified the contract code to ensure that it can run correctly
can you please explain how you solved the error? SOLVED
@chloeqjz Thank you for your reply, I solved the error problem, the more reason is that I don't understand the mechanism of aptos, I modified the contract code to ensure that it can run correctly
can you please explain how you solved the error? SOLVED
Hi - if you still have questions, we updated the tutorial for it to be clearer - if you rebase off main, you could follow the steps here: https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/move-examples/mint_nft/sources/minting.move#L27. Lmk if you have any other questions : )
i run cmd
aptos move create-resource-account-and-publish-package --seed hex_array:4321 --address-name mint_nft=default --named-addresses source_addr=default
return
Compiling, may take a little while to download git dependencies... { "Error": "Unexpected error: Unable to resolve packages for package 'nft_mint'" }
what is error? @0xchloe
hi @0xchloe
i changed cmd
cargo run -p aptos -- move create-resource-account-and-publish-package --seed hex_array:4321 --address-name mint_nft --profile default
respond:
Do you want to publish this package under the resource account's address 7bd93b7892163de7465047b57bce13dc83fbb3861cfae1890fab421a7f733daf? [yes/no] > y package size 8802 bytes { "Error": "Simulation failed with status: Move abort in 0x1::resource_account: 0x60001" }
it does not create resource account? right?
Can you guys help me solve this issue ?
"Error": "Simulation failed with status: Move abort in 0x1::resource_account: 0x10002"
I have referred to resource_account.move but couldn't find error with error code 2.
Thanks a lot !