*: make Notify interop accept event name

This commit is contained in:
Evgenii Stratonikov 2020-06-29 11:25:32 +03:00
parent 1154e180fa
commit 3d7fa9de93
17 changed files with 84 additions and 43 deletions

View file

@ -7,16 +7,16 @@ import (
// Main is that famous Main() function, you know.
func Main() bool {
tx := runtime.GetScriptContainer()
runtime.Notify(tx.Hash)
runtime.Notify("Tx", tx.Hash)
callingScriptHash := runtime.GetCallingScriptHash()
runtime.Notify(callingScriptHash)
runtime.Notify("Calling", callingScriptHash)
execScriptHash := runtime.GetExecutingScriptHash()
runtime.Notify(execScriptHash)
runtime.Notify("Executing", execScriptHash)
entryScriptHash := runtime.GetEntryScriptHash()
runtime.Notify(entryScriptHash)
runtime.Notify("Entry", entryScriptHash)
return true
}