mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +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
3
pkg/rpc/server/testdata/test_contract.go
vendored
3
pkg/rpc/server/testdata/test_contract.go
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue