Skip to content

Contract CRUD via Access Keys - several PoC Tests Failing for different reasons #3755

Answered by frol
TrevorJTClarke asked this question in Q&A
Discussion options

You must be logged in to vote

Case A: (Doesn't work, I believe it should)

You just don't have the matching account_id with its key-pair on your local machine where you run near CLI, so CLI just cannot sign the transaction, and it has nothing to do with the permissions. You need to have ~/.near-credentials/default/cases-284814421608153814319404013.json with the public/private keys and account id. I don't have any recommendation on how to automate this step via near CLI.

Case B: (Worked! But why?)

When you create an account and have other actions in the same transaction, you have full access to the new account in that context and thus you can add new keys and delete it. FYI, it is not going to work if you split that…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TrevorJTClarke
Comment options

@bowenwang1996
Comment options

Answer selected by TrevorJTClarke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants