mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-02 15:44:41 +00:00
core: move System.ExecutionEngine.* interops to System.Runtime.*
This commit is contained in:
parent
901181a392
commit
ad2a75a500
10 changed files with 58 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue