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

Incorrect API response for get_block_header_state #215

Open
abhi3700 opened this issue Sep 13, 2023 · 0 comments
Open

Incorrect API response for get_block_header_state #215

abhi3700 opened this issue Sep 13, 2023 · 0 comments

Comments

@abhi3700
Copy link

abhi3700 commented Sep 13, 2023

Description

While requesting for API response for block_header_state, I get this as response.

I think authority key should have an array of structs as understood from the documentation. That means 0 shouldn't be there which is the index of 1st element in the array.

But, later on was highlighted by @kevin on telegram group chat.

Thereby coming to an agreement, I propose these as one of the corrections that we can proceed with:

"active_schedule": {
    "version": 2085,
    "producers": [
      {
        "producer_name": "atticlabeosb",
        "authority": {
            "threshold": 1,
            "keys": [
              {
                "key": "EOS7PfA3A4UdfMu2wKbuXdbHn8EWAxbMnFoFWui4X2zsr2oPwdQJP",
                "weight": 1
              }
            ]
          }
      },
"active_schedule": {
    "version": 2085,
    "producers": {
      "0": {
        "producer_name": "atticlabeosb",
        "authority": {
            "threshold": 1,
            "keys": [
              {
                "key": "EOS7PfA3A4UdfMu2wKbuXdbHn8EWAxbMnFoFWui4X2zsr2oPwdQJP",
                "weight": 1
              }
            ]
          }
       }
      },
"active_schedule": {
    "version": 2085,
    "producers": [
      {
        "producer_name": "atticlabeosb",
        "authority": [
          {
            "threshold": 1,
            "keys": [
              {
                "key": "EOS7PfA3A4UdfMu2wKbuXdbHn8EWAxbMnFoFWui4X2zsr2oPwdQJP",
                "weight": 1
              }
            ]
          }
        ]
      },

Or else, I have thought of creating a way out to define a vector with elements of different data types (in Rust that I know of) using vector of enums.

abhi3700 added a commit to abhi3700/antelope-sdk-rust that referenced this issue Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant