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