mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 19:33:36 +00:00
22 lines
529 B
Go
22 lines
529 B
Go
package enginecontract
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
// Main is that famous Main() function, you know.
|
|
func Main() bool {
|
|
tx := runtime.GetScriptContainer()
|
|
runtime.Notify("Tx", tx.Hash)
|
|
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
|
runtime.Notify("Calling", callingScriptHash)
|
|
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
|
runtime.Notify("Executing", execScriptHash)
|
|
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
|
runtime.Notify("Entry", entryScriptHash)
|
|
|
|
return true
|
|
}
|