Skip to content

Conversation

@16point7
Copy link

Algorand Coding Challenge Submission

What was the bug?

Return statement of AlgorandPuzzle2.solveThePuzzle() was commented out, and therefore, by default, the function returns undefined. This is a violation of the typescript definition of the function which says it should return a value of type string.

How did you fix the bug?

Uncommented the return statement.

I also forgot to pull in dependencies before running npm run test the first time, so I received the following error: sh: 1: tealscript: not found. This was resolved by running algokit bootstrap npm, which under the hood, runs npm install, and since tealscript is listed as a dependency in package.json, this dependency issue was satisfied.

Console Screenshot:

image

@16point7 16point7 marked this pull request as ready for review March 12, 2024 20:53
@iskysun96 iskysun96 added the Approved ✅ Successfully completed the challenge! label Mar 12, 2024
@iskysun96
Copy link
Contributor

Beautiful explanation

🎉 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/f5ctf17aqhhzxxhrjgzye58g5fa07tr9x7q1j595041m2t7drgkx4z87neww65f81ehyvkxd7qp0f21pzg7vpdne0vqrncc7m1bv02g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved ✅ Successfully completed the challenge!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants