examples: add _deploy usage examples

Close #1466
This commit is contained in:
Anna Shaleva 2020-10-10 20:17:04 +03:00
parent f8d5c40928
commit fde0546e28
3 changed files with 108 additions and 0 deletions

View file

@ -16,6 +16,14 @@ func init() {
trigger = runtime.GetTrigger()
}
func _deploy(isUpdate bool) {
if isUpdate {
Log("_deploy method called before contract update")
return
}
Log("_deploy method called before contract creation")
}
// CheckWitness checks owner's witness
func CheckWitness() bool {
// Log owner upon Verification trigger