web3-course/l3/helloevent/helloevent.go
Stanislav Bogatyrev 9ce38e6ffa Add helloevent
Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
2023-11-08 13:46:11 +03:00

15 lines
386 B
Go

package helloevent
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
var notificationName string
// init initializes notificationName before calling any other smart-contract method
func init() {
notificationName = "HelloWorld"
}
// RuntimeNotify sends runtime notification with "HelloWorld" name
func RuntimeNotify(args []any) {
runtime.Notify(notificationName, args)
}