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

Update demo contract #351

Closed
Tommo-L opened this issue Sep 10, 2020 · 1 comment · Fixed by #353
Closed

Update demo contract #351

Tommo-L opened this issue Sep 10, 2020 · 1 comment · Fixed by #353

Comments

@Tommo-L
Copy link
Contributor

Tommo-L commented Sep 10, 2020

namespace $safeprojectname$
{
[ManifestExtra("Author", "Neo")]
[ManifestExtra("Email", "[email protected]")]
[ManifestExtra("Description", "This is a contract example")]
[Features(ContractFeatures.HasStorage)]
public class Contract1 : SmartContract
{
public static bool Main(string operation, object[] args)
{
Storage.Put("Hello", "World");
return true;
}
}
}

  • add Verify method and comment
  • change Main(string operation, object[] args) to Main()
@devhawk
Copy link
Contributor

devhawk commented Sep 10, 2020

Should we also add Update and/or Delete?

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 a pull request may close this issue.

2 participants