Replies: 2 comments 11 replies
-
I suspect the issue is coming from your |
Beta Was this translation helpful? Give feedback.
11 replies
-
Also, I recommend you use objects for deployment and contract state storage, it's a lot easier to deal with :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
davidbailey.eth
Describe your question in detail.
Hello, I have this code. Im having problems with publishing it on testnet.
When I run
aptos move publish
, Im gettingSimulation failed with status: Move abort in 0x1::resource_account: 0x60001"
error.From that, I understand that the resource account was not found or that I used the wrong address in this line of code
let signer_cap = resource_account::retrieve_resource_account_cap(resource_signer, @source_addr);
.Therefore I tried to follow this in order to generate the address first using
create-resource-account-and-publish-package
like thisaptos move create-resource-account-and-publish-package --address-name aptos_institute --seed test
(aptos institute here is an address I got when I ran the aptos move compile). But I meet another error which is saying"Error": "Unexpected error: Unable to resolve packages for package 'aptos_institute': Unable to resolve named address 'aptos_institute' in package 'aptos_institute' when resolving dependencies: Attempted to assign a different value '0x50a1c95f48059ee74cdd2dcc0b0eb60c0547ae37fef5b7231feb014a0c36baa1' to an a already-assigned named address '0x357017d43fab9fb7f46f097c69dc27cb1472ecddb28090f1652dbb1b3f604527'"
Okay, so I try to use that new address I just got as the the address when I run
create-resource-account-and-publish-package
. That asks me if I really want to publish this package the resource account's address 0x357017d43fab9fb7f46f097c69dc27cb1472ecddb28090f1652dbb1b3f604527. I say yes. And get another error -"Simulation failed with status: MODULE_ADDRESS_DOES_NOT_MATCH_SENDER"
.I don't understand how am I suppose to publish with resource accounts at all. Could someone help me with what address to use? Or if I am doing something else wrong, point me to the mistake?
Thank you
What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
macOS
Which SDK or tool are you using? (if any)
Aptos CLI
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions