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

solvedd #69

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

Conversation

Nehareddyjinna
Copy link

Algorand Coding Challenge Submission

What was the bug?

The bug was about the fact that in the smart contract method record_ai_info we were trying to assign to the LocalState ai_info the wrong data types when building an object of the class AiInfo; because It inherits from arc4.Struct, we need to construct this object by using the correct arc4 data types specified in the respective class definition.

How did you fix the bug?

I fixed the bug by providing the correct arc4 data types when initializing the AiInfo object. I also imported String from algopy to correctly pass the arguments to the record_ai_info method.

Console Screenshot:
Screenshot 2024-05-09 at 7 13 22 AM

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

🎉 Congrats on solving the 4th Algorand Python 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/ef5704v2qwccdxhczy2q9xrapp23gh3sxm0gqc3gjya321kvqvm3nenmkqagy123nwcmf19q16fkcecs3157qyxd9fzye5pb2579000

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.

3 participants