From 659409984618c3973bddacc122aadb88241fc8aa Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 20 Sep 2021 21:56:06 +0300 Subject: [PATCH] examples: rename Migrate methods to Update It's a remnant from N2, so this commit unifies style of all update-related methods. --- examples/timer/timer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/timer/timer.go b/examples/timer/timer.go index b42c5c9f3..3e09d39ba 100644 --- a/examples/timer/timer.go +++ b/examples/timer/timer.go @@ -39,8 +39,8 @@ func _deploy(_ interface{}, isUpdate bool) { runtime.Log("Timer set to " + i + " ticks.") } -// Migrate migrates the contract. -func Migrate(script []byte, manifest []byte) bool { +// Update updates the contract. +func Update(script []byte, manifest []byte) bool { if !runtime.CheckWitness(owner) { runtime.Log("Only owner is allowed to update the contract.") return false