mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 13:56:35 +00:00
ae3f15523c
Closes #1234
29 lines
892 B
Go
29 lines
892 B
Go
package enginecontract
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
// NotifyScriptContainer sends runtime notification with script container hash
|
|
func NotifyScriptContainer() {
|
|
tx := runtime.GetScriptContainer()
|
|
runtime.Notify("Tx", tx.Hash)
|
|
}
|
|
|
|
// NotifyCallingScriptHash sends runtime notification with calling script hash
|
|
func NotifyCallingScriptHash() {
|
|
callingScriptHash := runtime.GetCallingScriptHash()
|
|
runtime.Notify("Calling", callingScriptHash)
|
|
}
|
|
|
|
// NotifyExecutingScriptHash sends runtime notification about executing script hash
|
|
func NotifyExecutingScriptHash() {
|
|
execScriptHash := runtime.GetExecutingScriptHash()
|
|
runtime.Notify("Executing", execScriptHash)
|
|
}
|
|
|
|
// NotifyEntryScriptHash sends notification about entry script hash
|
|
func NotifyEntryScriptHash() {
|
|
entryScriptHash := runtime.GetEntryScriptHash()
|
|
runtime.Notify("Entry", entryScriptHash)
|
|
}
|