mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
examples: fix linter issues
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
949ed4f2ea
commit
524ba5fd1b
13 changed files with 39 additions and 42 deletions
|
@ -4,25 +4,25 @@ import (
|
|||
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||
)
|
||||
|
||||
// NotifyScriptContainer sends runtime notification with script container hash
|
||||
// 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
|
||||
// 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
|
||||
// NotifyExecutingScriptHash sends runtime notification about executing script hash.
|
||||
func NotifyExecutingScriptHash() {
|
||||
execScriptHash := runtime.GetExecutingScriptHash()
|
||||
runtime.Notify("Executing", execScriptHash)
|
||||
}
|
||||
|
||||
// NotifyEntryScriptHash sends notification about entry script hash
|
||||
// NotifyEntryScriptHash sends notification about entry script hash.
|
||||
func NotifyEntryScriptHash() {
|
||||
entryScriptHash := runtime.GetEntryScriptHash()
|
||||
runtime.Notify("Entry", entryScriptHash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue