Skip to content

Commit

Permalink
fix winners
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Sep 29, 2023
1 parent 8da18d4 commit 75454a6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions realm/raffle/raffle.gno
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package raffle

import "std"
import (
"std"
"bytes"
)

type Player struct {
Address string
Expand Down Expand Up @@ -179,6 +182,11 @@ func init() {
}
}

func Winners() []string {
return winners
func Winners() string {
var buf bytes.Buffer
for _, winner := range winners {
buf.WriteString(winner)
buf.WriteByte('\n')
}
return buf.String()
}

0 comments on commit 75454a6

Please sign in to comment.