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,7 +1,6 @@
package testdata
import (
"github.com/nspcc-dev/neo-go/pkg/interop/engine"
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
)
@ -71,7 +70,7 @@ func Main(operation string, args []interface{}) interface{} {
return true
case "init":
ctx := storage.GetContext()
h := engine.GetExecutingScriptHash()
h := runtime.GetExecutingScriptHash()
amount := totalSupply
storage.Put(ctx, h, amount)
runtime.Notify("transfer", []byte{}, h, amount)