mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
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