core: move System.ExecutionEngine.* interops to System.Runtime.*

This commit is contained in:
Evgenii Stratonikov 2020-06-16 11:54:48 +03:00
parent 901181a392
commit ad2a75a500
10 changed files with 58 additions and 61 deletions

View file

@ -1,22 +1,21 @@
package enginecontract
import (
"github.com/nspcc-dev/neo-go/pkg/interop/engine"
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
)
// Main is that famous Main() function, you know.
func Main() bool {
tx := engine.GetScriptContainer()
tx := runtime.GetScriptContainer()
runtime.Notify(tx)
callingScriptHash := engine.GetCallingScriptHash()
callingScriptHash := runtime.GetCallingScriptHash()
runtime.Notify(callingScriptHash)
execScriptHash := engine.GetExecutingScriptHash()
execScriptHash := runtime.GetExecutingScriptHash()
runtime.Notify(execScriptHash)
entryScriptHash := engine.GetEntryScriptHash()
entryScriptHash := runtime.GetEntryScriptHash()
runtime.Notify(entryScriptHash)
return true