refactor: delete unimportant methods
This commit is contained in:
parent
73edc490e8
commit
be1de6b82f
1 changed files with 1 additions and 13 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue