Contract CRUD via Access Keys - several PoC Tests Failing for different reasons #3755
-
Hello all! View repo here -- https://gitlab.com/TrevorJTClarke/near-account-crud-tests/ You can see, i am trying to achieve the same effect via cli, contract or combination of both. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You just don't have the matching account_id with its key-pair on your local machine where you run
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 into individual transactions as those operations will get guarded by the permissions system.
You are trying to initiate a create account action on behalf of a deleted account, this is not going to work since by the time the execution of the
Same as Case A, just a matter of configuration.
See case B |
Beta Was this translation helpful? Give feedback.
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 vianear
CLI.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…