mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
22 lines
485 B
Go
22 lines
485 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)
|
|
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
|
runtime.Notify(callingScriptHash)
|
|
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
|
runtime.Notify(execScriptHash)
|
|
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
|
runtime.Notify(entryScriptHash)
|
|
|
|
return true
|
|
}
|