forked from TrueCloudLab/neoneo-go
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:
parent
68af14100c
commit
6594099846
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue