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

Uncommented line 8 in contracts/algorand-puzzle-2-algo.ts, ran algokit bootstrap all to resolve dependencies #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rolandgalibert
Copy link

Hi Chris - Although it's at least 95% possible my code is correct, I'm getting "errorTypeError: fetch failed" and "TypeError: fetch failed" errors when I enter "npm run test" (screenshot below) and I was hoping you might be able to provide me with some pointers for resolving this.

Screenshot from 2024-03-19 14-50-07

To resolve the original bug, I:

  1. Uncommented line 8 in contracts/algorand-puzzle-2-algo.ts
  2. Ran "algokit bootstrap all" to resolve all project dependencies (it seems that "algokit bootstrap npm" would have sufficed).

So again, perhaps everything is correct except my setup; any pointers you could possibly provide for resolving this would be greatly appreciated.

@iskysun96
Copy link
Contributor

Hmm, it seems like it's struggling to fetch the localnet account. Could you try resetting your localnet with algokit localnet reset ? and try running the code again?

@rolandgalibert
Copy link
Author

rolandgalibert commented Mar 20, 2024

Thanks a lot, the algokit localnet reset worked and here's a screenshot with the correct output:
Screenshot from 2024-03-20 05-35-39

@iskysun96 iskysun96 added the Approved ✅ Successfully completed the challenge! label Mar 20, 2024
@iskysun96
Copy link
Contributor

Beautiful! Yeah I noticed this happening to me from time to time. Investigating now. Thank you for bringing it up 😁

🎉 Congrats on solving the 2nd Algorand Coding Challenge!

I have labeled your PR approved so you can now claim your certificate.

You can claim your certificate of completion NFT here:
https://goplausible.xyz/claim/c45kmyrg5vxtmzd4pz1cefpq70e7rp8tx6dyjcve8w544f35kgf6155h5nq6dgj7q3gceg1214gqfjbysvqxsyf2bnp5eyc5rnhy230

@iskysun96 iskysun96 added the LEGENDARY Recognizing the REAL ones 👑 label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved ✅ Successfully completed the challenge! LEGENDARY Recognizing the REAL ones 👑
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants