Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When calling updateauth, keys and account names must be in alphabetical order #116

Open
joshkauffman opened this issue Dec 21, 2018 · 0 comments
Assignees
Labels
documentation enhancement New feature or request

Comments

@joshkauffman
Copy link
Contributor

eosc does not give a good assertion when failing to updateauth. Keys and account names must be in alphabetical order, but this is not commented anywhere. We should at least add this to the --help for now.

This is what I was presented with when trying to change up until we figured it out.

{
  "code": 500,
  "message": "Internal Service Error",
  "error": {
    "code": 3050000,
    "name": "action_validate_exception",
    "what": "Action validate exception",
    "details": [
      {
        "message": "Invalid authority: {\"threshold\":2,\"keys\":[{\"key\":\"EOS7vca1TogPTeMuXwstar1NFvTxzAipVyHced8ZMugEKdBDFdnHZ\",\"weight\":1},{\"key\":\"EOS7cn6BWhccQEMhPvZyNmZ6X3ZwsjhMeav9P2fguDBFWnwEkzqLS\",\"weight\":1}],\"accounts\":[],\"waits\":[]}",
        "file": "eosio_contract.cpp",
        "line_number": 217,
        "method": "apply_eosio_updateauth"
      },
      {
        "message": "pending console output: ",
        "file": "apply_context.cpp",
        "line_number": 72,
        "method": "exec_one"
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants