Skip to content

Update demo contract#353

Merged
shargon merged 11 commits intoneo-project:masterfrom
chenzhitong:issue351
Sep 15, 2020
Merged

Update demo contract#353
shargon merged 11 commits intoneo-project:masterfrom
chenzhitong:issue351

Conversation

@chenzhitong
Copy link
Copy Markdown
Contributor

close #351

@chenzhitong chenzhitong changed the title Issue 351 Update demo contract Sep 11, 2020
Tommo-L
Tommo-L previously approved these changes Sep 11, 2020
// For example, this method needs to be called when withdrawing token from the contract.
public static bool Verify() => IsOwner();

public static bool Main()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static bool Main()
public static bool MyMethod()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we can add some comments to explain that this should be replaced with your own methods.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments.

Co-authored-by: Erik Zhang <erik@neo.org>
shargon
shargon previously approved these changes Sep 11, 2020
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
@shargon shargon merged commit 2ebb098 into neo-project:master Sep 15, 2020
Jim8y pushed a commit that referenced this pull request Aug 3, 2025
* Add Verify
* add update and destroy
* update
* update
* Update templates/Template.CSharp/Contract1.cs
Co-authored-by: Erik Zhang <erik@neo.org>
* Update templates/Template.CSharp/Contract1.cs
Co-authored-by: Erik Zhang <erik@neo.org>
* update
* Update templates/Template.CSharp/Contract1.cs
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
Co-authored-by: Erik Zhang <erik@neo.org>
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
Jim8y pushed a commit that referenced this pull request Aug 18, 2025
* Add Verify

* add update and destroy

* update

* update

* Update templates/Template.CSharp/Contract1.cs

Co-authored-by: Erik Zhang <erik@neo.org>

* Update templates/Template.CSharp/Contract1.cs

Co-authored-by: Erik Zhang <erik@neo.org>

* update

* Update templates/Template.CSharp/Contract1.cs

Co-authored-by: Luchuan <luchuan@ngd.neo.org>

Co-authored-by: Erik Zhang <erik@neo.org>
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
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.

Update demo contract

4 participants