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) }