Skip to content

Conversation

@edcalderon
Copy link

Algorand Coding Challenge Submission

What was the bug?

How did you fix the bug?

Console Screenshot:

@edcalderon
Copy link
Author

What was the bug? Not bug just uncomment the 8 line, and install dep

How did you fix the bug? did not do it at local get

npm run generate-client

algorand-puzzle-2@0.0.0 generate-client
algokit generate client contracts/artifacts/ --language typescript --output contracts/clients/{contract_name}Client.ts

You are using AlgoKit version 1.4.2, however version 1.12.3 is available.
Error: No app specs found

Console Screenshot:
image

@edcalderon
Copy link
Author

clues here @iskysun96 ?

@iskysun96
Copy link
Contributor

Have you compiled the contract before running generate-client? If you run npm run test it will compile, generate client, and run the test for you. If you would like to do it separately, check the package.json scripts to find the command for compiling the contract!

@edcalderon
Copy link
Author

Yes, I did it and it compiles well, it generates the .teal correctly but when I run the npm run test, it still shows `"Error: No app specs found"``

@iskysun96
Copy link
Contributor

iskysun96 commented Mar 12, 2024

Do you see the arc32.json file under artifacts folder?
image

the client generator uses the arc32.json file to generate the appClient.

@edcalderon
Copy link
Author

YEP
image

@edcalderon
Copy link
Author

looks like everything is fine

@iskysun96
Copy link
Contributor

could you try upgrading to the latest version of algokit?

@edcalderon
Copy link
Author

Perfect, you got it! That was the problem. I swore I had the latest version.
image

@edcalderon
Copy link
Author

solved 💯

@edcalderon
Copy link
Author

thanks! @iskysun96

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

YESSSSS 🥳

🎉 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