mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +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.")
|
runtime.Log("Timer set to " + i + " ticks.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Migrate migrates the contract.
|
// Update updates the contract.
|
||||||
func Migrate(script []byte, manifest []byte) bool {
|
func Update(script []byte, manifest []byte) bool {
|
||||||
if !runtime.CheckWitness(owner) {
|
if !runtime.CheckWitness(owner) {
|
||||||
runtime.Log("Only owner is allowed to update the contract.")
|
runtime.Log("Only owner is allowed to update the contract.")
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue