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

Неправильно десериализуется ключ #16

Open
zxcat opened this issue Dec 3, 2019 · 0 comments
Open

Неправильно десериализуется ключ #16

zxcat opened this issue Dec 3, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@zxcat
Copy link

zxcat commented Dec 3, 2019

Проблема при девсериализации транзакции с помощью deserializeTransactionWithActions.

Пример: https://explorer.cyberway.io/account/cyberthinker/proposal/c.comowner
Параметры первого экшена десериализовались как

    {
        "account": "c.com",
        "permission": "owner",
        "parent": ".............",
        "auth": {
          "threshold": 1,
          "keys": [
            {
              "key": "PUB_K1_5UuLvruMSU6cvNX2kmBpc2c8rwBA4rbcMJ5cb1boNdPvve2pK7",
              "weight": 1
            }
          ],
          "accounts": [],
          "waits": []
    }

В то же время ответ ноды соответствует параметрам переданным в пропозал:

cleos convert unpack_action_data cyber updateauth "00000000004911400000000080ab26a70000000000000000010000000100024e23ef068069b889a1b9a0c04a2c39cb138a5cca96a2ae21447d14db0251f27201000000"

{
  "account": "c.com",
  "permission": "owner",
  "parent": "",
  "auth": {
    "threshold": 1,
    "keys": [{
        "key": "GLS5UuLvruMSU6cvNX2kmBpc2c8rwBA4rbcMJ5cb1boNdPvuWoebk",
        "weight": 1
      }
    ],
    "accounts": [],
    "waits": []
  }
}
@zxcat zxcat added the bug Something isn't working label Dec 3, 2019
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

1 participant