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 1 solved by J Shrihari #91

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

Conversation

ShrihariJujaray
Copy link

Algorand Coding Challenge Submission

What was the bug?
After debugging, we saw that the code is given with a bug at
Line 26 - """ptxn.reciever == Global.current_application_id"""
and
Line 30 - """Txn.sender , Global.current_application_address"""
here,we notice that the above both are comparing the address type and application type then
=>ptxn.reciever returns the Address Type but Global.current_Application_Id (returns the application type) and by comparing both,gives an error as well as in ln(2) expression also
=> op.app_opted_in method is comparing the Txn.sender( returns Application type) and
Global.current_application_address(returns Address Type) .By comparing two different types of data gives an error.

How did you fix the bug?
=> To fix bug (1), we need to usee the current_application_address(returns Address Type) method in Global class{
Global.current_application_address }
To fix bug (1), we need to usee the current_application_id(returns Application Type) method in Global class{
Global.current_application_id}
challange1

Console Screenshot:

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

🎉 Congrats on solving the 1st 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/5rc2q57822ka1h0pf4eqv6yx1nxwwvvf5m72vte7gdf6sr0wxd4ccdsp3qzmtas72jxdnrjv9ewf6rwee0aerm1whzt509dv2rh5w18

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