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

Linkauth wildcard seems to expect a different order of arguments #138

Open
joshkauffman opened this issue May 31, 2019 · 1 comment
Open
Labels
bug Something isn't working

Comments

@joshkauffman
Copy link
Contributor

Arguments are listed as:
eosc system linkauth [your account] [code account] [action name] [permission name] [flags]
When entering:
eosc system linkauth dfusecontent eosio.token "*" active I got this error returned:
ERROR: invalid name format for "action name": invalid name, 13 characters maximum

However, when flipping around * and active's placement, it allowed the tx to be tried.

As a second error though, it then returned the error:

      {
        "message": "Required permission cannot be empty",
        "file": "eosio_contract.cpp",
        "line_number": 306,
        "method": "apply_eosio_linkauth"
      },
      {
        "message": "",
        "file": "eosio_contract.cpp",
        "line_number": 346,
        "method": "apply_eosio_linkauth"
      },
      {
        "message": "pending console output: ",
        "file": "apply_context.cpp",
        "line_number": 72,
        "method": "exec_one"
      }
@joshkauffman joshkauffman added the bug Something isn't working label May 31, 2019
@DenisCarriere
Copy link

To add support for linkauth wildcard, simply push blank data for type field.

Example

https://eosq.app/tx/ea37b719d9aee58ece21d8da0596787a4c826564663810058a42e08b5bce36ee

{
   "account": "deweb.eosn",
   "code": "deweb.eosn",
   "requirement": "firebase",
   "type": ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants