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

Solution Solved #81

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

Conversation

Sankeerth2005
Copy link

Algorand Coding Challenge Submission

What was the bug?

Added bare method

How did you fix the bug?

@arc4.baremethod(allow_actions=["OptIn"])
def opt_in(self) -> None:
self.count[Txn.sender] = UInt64(0)
self.counters.value += 1
@arc4.abimethod()
def increment(self) -> arc4.UInt64:
assert Txn.sender.is_opted_in(
Global.current_application_id
), "Sender must opt-in to the contract"
self.count[Txn.sender] += 1
return arc4.UInt64(self.count[Txn.sender])

Console Screenshot:
Screenshot 2024-05-10 143519

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

🎉 Congrats on solving the 2nd 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/pz11yepgf0h0n3xr858ptvc2bp6vn4bpae5scrh16a7jjpm1d85402qfxh6pmf19jes5ny9mbfmgxdq64yhgy20zc839278nc0k2g2r

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