forked from TrueCloudLab/neoneo-go
Merge pull request #2183 from nspcc-dev/examples/rename-migrate
examples: rename Migrate methods to Update
This commit is contained in:
commit
ca7be4c7fa
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