forked from TrueCloudLab/neoneo-go
*: make Notify interop accept event name
This commit is contained in:
parent
1154e180fa
commit
3d7fa9de93
17 changed files with 84 additions and 43 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue