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

[Bug]The SDK is not functioning properly in the latest Testnet Beta #888

Open
YaakovHuang opened this issue Jun 19, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@YaakovHuang
Copy link

🐛 Bug Report

When I try to use SDK v0.6.9 in Testnet Beta to request the latest block height and query the balance of my account, it reports an error. The same code works fine on Testnet3.

Steps to Reproduce

Code snippet to reproduce

async function testnet() {
  const connection = new AleoNetworkClient("https://api.explorer.aleo.org/v1/testnet");

  const latestHeight = await connection.getLatestHeight();
  console.log(`# latestHeight = `, latestHeight);

  const mappings = await connection.getProgramMappingNames("credits.aleo");
  console.log(`# mappings = `, mappings);

  const public_balance = await connection.getProgramMappingValue("credits.aleo", "account", "aleo10aju84jkxnvuw47qanfffnnzphwujsc803cqt6g237dq9a785qxq7zsqhf");
  console.log(`# balance = `, public_balance);

}

Stack trace & error message

Error: Error fetching latest height.
Error: Error fetching program mappings - ensure the program exists on chain before trying again

Your Environment

  • Sdk v0.6.9
  • Testnet Beta
@YaakovHuang YaakovHuang added the bug Something isn't working label Jun 19, 2024
@ldbfpiaoran
Copy link

誰も? 全員死んでる? それともみんなお金を騙すのに忙しいのでしょうか?

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