mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 23:30:36 +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
|
|
}
|