From be1de6b82f54821a1e34b9d1399e525e47fec612 Mon Sep 17 00:00:00 2001 From: Vr61v Date: Mon, 20 Jan 2025 17:37:18 +0300 Subject: [PATCH] refactor: delete unimportant methods --- contracts/room_contract.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/contracts/room_contract.go b/contracts/room_contract.go index 31c15bc..d793ce0 100644 --- a/contracts/room_contract.go +++ b/contracts/room_contract.go @@ -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) }