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

python-challenge-4 solved #76

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

Conversation

Keerthilochankumar
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:
A-py-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant