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

Sync with 2239 and 2235 #430

Merged
merged 6 commits into from
Jan 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change template
  • Loading branch information
shargon committed Jan 15, 2021
commit 9cee1c1e531fdf1f7efe0f6da3b0e95ba3537768
4 changes: 2 additions & 2 deletions templates/Template.CSharp/Contract1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static byte[] MyMethod()
return Storage.Get("Hello");
}

public static void _deploy(bool update)
public static void _deploy(bool update, object data)
{
if (update) return;

Expand All @@ -38,7 +38,7 @@ public static void _deploy(bool update)
public static void Update(byte[] nefFile, string manifest)
{
if (!IsOwner()) throw new Exception("No authorization.");
ContractManagement.Update(nefFile, manifest);
ContractManagement.Update(nefFile, manifest, null);
}

public static void Destroy()
Expand Down