Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Jun 18, 2024
1 parent afd0f2e commit 9fab720
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions examples/gno.land/r/gov/dao/prop1_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ func init() {
// Create the validators change proposal.
changesFn := func() []validators.Change {
return []validators.Change{
{Address: std.Address("g12345678"), Power: 1}, // add a new validator.
{Address: std.Address("g000000000"), Power: 0}, // remove an existing validator.
// add a new validator.
{Address: std.Address("g12345678"), Power: 1},
// remove an existing validator.
{Address: std.Address("g000000000"), Power: 0},
}
}

Expand Down Expand Up @@ -78,5 +80,6 @@ func main() {
// Status: success
// Author: g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm
// --
// Valset changes to apply:- g12345678 (1)
// Valset changes to apply:
// - g12345678 (1)
// - g000000000 (0)
2 changes: 1 addition & 1 deletion examples/gno.land/r/sys/validators/validators.gno
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Render(_ string) string {
return "No valset changes to apply."
}

output := "Valset changes to apply:"
output := "Valset changes to apply:\n"
for _, change := range unappliedChanges {
output += "- " + string(change.Address) + " (" + strconv.Itoa(change.Power) + ")\n"
}
Expand Down

0 comments on commit 9fab720

Please sign in to comment.