examples: rename Migrate methods to Update

It's a remnant from N2, so this commit unifies style of all
update-related methods.
This commit is contained in:
Anna Shaleva 2021-09-20 21:56:06 +03:00
parent 68af14100c
commit 6594099846

View file

@ -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