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
|
|
}
|