forked from TrueCloudLab/neoneo-go
a1e3655560
neo-storm has developed more wrappers for syscall APIs, so they can and should be used as a drop-in replacement for pkg/vm/api. Moving it out of vm, as it's not exactly related to the VM itself.
22 lines
484 B
Go
22 lines
484 B
Go
package engine_contract
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/interop/engine"
|
|
"github.com/CityOfZion/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
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
|
|
}
|