Merge pull request #2183 from nspcc-dev/examples/rename-migrate

examples: rename Migrate methods to Update
This commit is contained in:
Roman Khimov 2021-09-21 12:49:36 +03:00 committed by GitHub
commit ca7be4c7fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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