Skip to content

challenge-4 done#53

Open
VBhanusr wants to merge 1 commit into
algorand-coding-challenges:mainfrom
VBhanusr:main
Open

challenge-4 done#53
VBhanusr wants to merge 1 commit into
algorand-coding-challenges:mainfrom
VBhanusr:main

Conversation

@VBhanusr

@VBhanusr VBhanusr commented May 5, 2024

Copy link
Copy Markdown

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-05 112236

@iskysun96

Copy link
Copy Markdown
Contributor

Could you please share the screenshot of your console after running the commands specified in the README?

@VBhanusr

VBhanusr commented May 9, 2024

Copy link
Copy Markdown
Author

image

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

Copy link
Copy Markdown
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.

2 participants