aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Error on Mint NFT move file on example

Open ozgur3512 opened this issue 3 years ago • 11 comments

{ "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 avatar Oct 24 '22 19:10 ozgur3512

@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

areshand avatar Oct 25 '22 18:10 areshand

I suppose we should display the error name instead of the error code here. something went wrong with the simulation API ?@wrwg @banool

areshand avatar Oct 25 '22 18:10 areshand

Yes but the minting.move example on files is not working so why is it there

ozgur3512 avatar Oct 25 '22 18:10 ozgur3512

I have the same problem, pls help. @chloeqjz @areshand

songliling avatar Oct 27 '22 14:10 songliling

@ozgur3512 on this problem, do you have any progress now?

songliling avatar Oct 27 '22 14:10 songliling

No update on my side, probably not going to bother more until aptos gets stable

ozgur3512 avatar Oct 27 '22 16:10 ozgur3512

hey @ozgur3512 pls create a bug report issue. Otherwise, I have no idea of how to reproduce the error you reported here.

areshand avatar Oct 27 '22 18:10 areshand

hey can you guys give guidance on how we can reproduce the errors? @songliling @ozgur3512

0xchloe avatar Oct 27 '22 19:10 0xchloe

@chloeqjz. Hi, The following is my operation steps, can not publish successfully, can you give me a correct publishing steps?

  1. run a local node
  2. aptos account fund-with-faucet --account 'default_address' --amount 1000000000
  3. aptos move compile --named-addresses mint_nft=default
  4. aptos move publish --named-addresses mint_nft=default
  5. "Error": "Simulation failed with status: Move abort in 0x1::resource_account: 0x60001"
  6. modify mint_nft.move: 83 line of code @0xcafe -> 0x'default_address'
  7. aptos account create-resource-account --seed 1
  8. aptos move compile --named-addresses mint_nft=default
  9. aptos move publish --named-addresses mint_nft=default
  10. "Error": "Simulation failed with status: Move abort in 0x1::simple_map: 0x10002"

songliling avatar Oct 28 '22 03:10 songliling

@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

songliling avatar Oct 28 '22 08:10 songliling

@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 : )

0xchloe avatar Oct 28 '22 17:10 0xchloe

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

0xchloe avatar Nov 01 '22 06:11 0xchloe

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.

jinkenedy119 avatar Nov 01 '22 08:11 jinkenedy119

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.

0xchloe avatar Nov 02 '22 01:11 0xchloe

@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

AsfndAmin avatar Nov 03 '22 12:11 AsfndAmin

@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 : )

0xchloe avatar Nov 03 '22 19:11 0xchloe

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

hoang14x avatar Nov 05 '22 08:11 hoang14x

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?

hoang14x avatar Nov 05 '22 08:11 hoang14x

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 !

mihir1739 avatar Dec 09 '23 06:12 mihir1739