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

api.query.proxy.proxies on some blocks doesn't work #5959

Open
3 of 10 tasks
wliyongfeng opened this issue Aug 21, 2024 · 1 comment
Open
3 of 10 tasks

api.query.proxy.proxies on some blocks doesn't work #5959

wliyongfeng opened this issue Aug 21, 2024 · 1 comment
Labels
Bug Tracks issues causing errors or unintended behavior, critical to fix for reliability. P3 - Low Non-essential improvements or minor fixes. Can be scheduled flexibly as time permits.

Comments

@wliyongfeng
Copy link

wliyongfeng commented Aug 21, 2024

  • I'm submitting a ...
  • Bug report
  • Feature request
  • Support request
  • Other
  • What is the current behavior and expected behavior?

On block 11178419, proxy.proxies doesn't work. Please use following code to reproduce:

async function queryProxies(api, delegator, height) {
  const blockHash = await api.rpc.chain.getBlockHash(height);
  const blockApi = await api.at(blockHash);
  const proxies = await blockApi.query.proxy.proxies(delegator);

  console.log(proxies.toJSON());
}

(async () => {
  const api = await getApi(); // please construct an api by yourself
  const delegator = "1KvKReVmUiTc2LW2a4qyHsaJJ9eE9LRsywZkMk5hyBeyHgw";

  await queryProxies(api, delegator, 11178419);

  process.exit(0)
})();
  • What is the motivation for changing the behavior?
  • Please tell us about your environment:
  • Version: 12.3.1

  • Environment:

    • Node.js
    • Browser
    • Other (limited support for other environments)
  • Language:

    • JavaScript
    • TypeScript (include tsc --version)
    • Other
@TarikGul
Copy link
Member

rel: #5974

Might just need the corrects types set in types-known.

@TarikGul TarikGul added Bug Tracks issues causing errors or unintended behavior, critical to fix for reliability. P3 - Low Non-essential improvements or minor fixes. Can be scheduled flexibly as time permits. labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Tracks issues causing errors or unintended behavior, critical to fix for reliability. P3 - Low Non-essential improvements or minor fixes. Can be scheduled flexibly as time permits.
Projects
None yet
Development

No branches or pull requests

2 participants