2019-09-03 15:00:10 +00:00
|
|
|
package enginecontract
|
2018-08-22 07:51:35 +00:00
|
|
|
|
|
|
|
import (
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
2018-08-22 07:51:35 +00:00
|
|
|
)
|
|
|
|
|
2019-09-03 14:51:37 +00:00
|
|
|
// Main is that famous Main() function, you know.
|
2018-08-22 07:51:35 +00:00
|
|
|
func Main() bool {
|
2020-06-16 08:54:48 +00:00
|
|
|
tx := runtime.GetScriptContainer()
|
2018-08-22 07:51:35 +00:00
|
|
|
runtime.Notify(tx)
|
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
2018-08-22 07:51:35 +00:00
|
|
|
runtime.Notify(callingScriptHash)
|
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
2018-08-22 07:51:35 +00:00
|
|
|
runtime.Notify(execScriptHash)
|
|
|
|
|
2020-06-16 08:54:48 +00:00
|
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
2018-08-22 07:51:35 +00:00
|
|
|
runtime.Notify(entryScriptHash)
|
|
|
|
|
|
|
|
return true
|
|
|
|
}
|