mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 13:56:35 +00:00
30eb137200
Fixes golint warnings: "don't use an underscore in package name" and makes our examples better. Refs. #213.
23 lines
533 B
Go
23 lines
533 B
Go
package enginecontract
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/interop/engine"
|
|
"github.com/CityOfZion/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
// Main is that famous Main() function, you know.
|
|
func Main() bool {
|
|
tx := engine.GetScriptContainer()
|
|
runtime.Notify(tx)
|
|
|
|
callingScriptHash := engine.GetCallingScriptHash()
|
|
runtime.Notify(callingScriptHash)
|
|
|
|
execScriptHash := engine.GetExecutingScriptHash()
|
|
runtime.Notify(execScriptHash)
|
|
|
|
entryScriptHash := engine.GetEntryScriptHash()
|
|
runtime.Notify(entryScriptHash)
|
|
|
|
return true
|
|
}
|