-
Notifications
You must be signed in to change notification settings - Fork 96
Update algorand-puzzle-2.algo.ts #43
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
base: main
Are you sure you want to change the base?
Conversation
Remove comments so Test assertion will pass.
|
how did you set up your dev environment? did you use a specific algokit command? |
Sorry, got sidetracked last night when I started this and didn't have time to complete till this morning. I had left the PR in a draft state so hopefully you wouldn't have to review :-) |
|
Nice work finding a workaround to solve the error! It wasn't part of this challenge but we witnessed this error from multiple participants. Could you try updating your AlgoKit to the latest version and see if the original way of generating the client works? 🎉 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: |
Sure thing, here's the steps I'm taking to reproduce:
|
|
so algokit-utils is different from algokit. could you try updating algokit to the latest version? if you used pipx its |
|
hmm weird. could you try running |
|
Thank you @babcoccl ❤️ We will investigate and find out what's wrong! |





















Remove comments so Test assertion will pass.
Algorand Coding Challenge Submission
What was the bug?
I thought the error was simply ensuring the return statement was uncommented so the unit test assertion would pass, however, I received the an error about the contract failing to generate error after running algokit bootstrap all. The error wasn't detailed and provided no guidance on what was wrong. I went to the algorand developer discord and saw some other asks about issues with Challenge two and the suggestion was to change the generate client command in package.json to: "algokitgen generate -a contracts/artifacts/AlgorandPuzzle2.arc32.json -o contracts/clients/AlgorandPuzzle2Client.ts" Whereas previously it was using a dynamic variable for name assignment among other things (different command params etc.) I made the change and the contract gen error resolved and the contract generated successfully. Running the unit tests via npm now succeeded.
How did you fix the bug?
I went to the algorand developer discord and saw some other asks about issues with Challenge two and the suggestion was to change the generate client command in package.json to: "algokitgen generate -a contracts/artifacts/AlgorandPuzzle2.arc32.json -o contracts/clients/AlgorandPuzzle2Client.ts"
Console Screenshot:
