-
Notifications
You must be signed in to change notification settings - Fork 397
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
feat(examples): add counter contract #3807
Conversation
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Hello, thank you for your contribution. This contract already exists in the examples folder, and tbh, your code seems like it was written by ChatGPT and for the purpose of airdrop farming. If you wish to contribute, please open a new PR, change your code to have demonstrational value in the examples folder and actually run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above, closing this.
Thank you. I will put in more work. I just wanna be a part of this. Your comment is well appreciated.
…-------- Original Message --------
On 24/02/2025 6:29 pm, Leon Hudak wrote:
Hello, thank you for your contribution. This contract already exists in the examples folder, and tbh, your code seems like it was written by ChatGPT and for the purpose of airdrop farming.
If you wish to contribute, please change your code to have demonstrational value in the examples folder and actually run gno test.
—
Reply to this email directly, [view it on GitHub](#3807 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ASEFIMZ53YZEUMRIRB4E5XD2RNJG5AVCNFSM6AAAAABXU557VCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGE3TINJXGA).
You are receiving this because you were assigned.Message ID: ***@***.***>
[leohhhn]leohhhn left a comment [(gnolang/gno#3807)](#3807 (comment))
Hello, thank you for your contribution. This contract already exists in the examples folder, and tbh, your code seems like it was written by ChatGPT and for the purpose of airdrop farming.
If you wish to contribute, please change your code to have demonstrational value in the examples folder and actually run gno test.
—
Reply to this email directly, [view it on GitHub](#3807 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ASEFIMZ53YZEUMRIRB4E5XD2RNJG5AVCNFSM6AAAAABXU557VCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGE3TINJXGA).
You are receiving this because you were assigned.Message ID: ***@***.***>
|
This PR adds a simple counter smart contract example to demonstrate state management in Gno. The example includes:
A counter contract with Increment, Decrement, Reset, and GetCount functions.
A test file (counter_test.gno) to verify the contract’s logic.
A README.md explaining usage and how to run tests.
Purpose:
Provides a beginner-friendly example for learning Gno smart contracts.
Shows how to manage state with std.GetState/std.SetState.
Checklist:
Ran gnodev test ./examples/counter locally.
Added documentation (README).