refactor: delete unimportant methods

This commit is contained in:
Nikita Mikhalev 2025-01-20 17:37:18 +03:00
parent 73edc490e8
commit be1de6b82f

View file

@ -11,18 +11,6 @@ import (
"sort"
)
var notificationName string
// init initializes notificationName before calling any other smart-contract method
func init() {
notificationName = "Hello world!"
}
// RuntimeNotify sends runtime notification with "Hello world!" name
func RuntimeNotify(args []any) {
runtime.Notify(notificationName, args)
}
// CONSTANTS
const (
@ -91,7 +79,7 @@ func getRoom(ctx storage.Context, roomId string) Room {
// Function to send message to players, event is recorded in blockchain
// Could be read through getapplicationlog or RPC call
func sendMessageToPlayers(notificationName, message string) {
func sendMessageToPlayers(notificationName string, message string) {
runtime.Notify(notificationName, message)
}