greymass / anchor

EOSIO Desktop Wallet and Authenticator
https://greymass.com/anchor/
MIT License
568 stars 221 forks source link

A name can be up to 12 characters long error #1126

Open Velua opened 3 years ago

Velua commented 3 years ago

I received an error on Anchor A name can be up to 12 characters long () when trying to induct an Eden member using the following information...

{
  "expiration": "2021-05-31T01:43:21",
  "ref_block_num": 9439,
  "ref_block_prefix": 1524382934,
  "max_net_usage_words": 0,
  "max_cpu_usage_ms": 0,
  "delay_sec": 0,
  "context_free_actions": [],
  "actions": [
    {
      "account": "genesis.eden",
      "name": "inductendorse",
      "authorization": [
        {
          "actor": "joh.n",
          "permission": "active"
        }
      ],
      "data": {
        "account": "joh.n",
        "id": "12736432704677882336",
        "induction_data_hash": "5120b1ebcb9b835cd54d0123d89e75e7fe53a2cbc420670d07f10b6bf47b0bdc"
      }
    }
  ],
  "transaction_extensions": []
}

This was being used in conjunction with a Ledger Nano S. After I added a hot key pair to my @active permission and going through cleos it worked.

aaroncox commented 3 years ago

Thanks for opening this issue.

Right now this is happening because the Ledger portion of the Anchor code is using an older version of eosjs. We haven't had the opportunity to reimplement all of that code using more modern libraries, so the action inductendorse being 13 characters long triggers a bug in that old version of eosjs.

We are going to have to find some time to rewrite it in order to get this working.

In the mean time, logging in with the Ledger directly on the Eden website is a work around. Instead of selecting Anchor from the wallet options on the site you can just select Ledger, type in the account name, and it'll log you in. I slated this for our 1.3.x release in the hopes we'll be able to get this done.