From 9fab720da588b120f3be170bbbaa01da37cfccdd Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:02:45 +0200 Subject: [PATCH] chore: fixup Signed-off-by: moul <94029+moul@users.noreply.github.com> --- examples/gno.land/r/gov/dao/prop1_filetest.gno | 9 ++++++--- examples/gno.land/r/sys/validators/validators.gno | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/gno.land/r/gov/dao/prop1_filetest.gno b/examples/gno.land/r/gov/dao/prop1_filetest.gno index 5c0cf8950ae..7072618a4a7 100644 --- a/examples/gno.land/r/gov/dao/prop1_filetest.gno +++ b/examples/gno.land/r/gov/dao/prop1_filetest.gno @@ -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}, } } @@ -78,5 +80,6 @@ func main() { // Status: success // Author: g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm // -- -// Valset changes to apply:- g12345678 (1) +// Valset changes to apply: +// - g12345678 (1) // - g000000000 (0) diff --git a/examples/gno.land/r/sys/validators/validators.gno b/examples/gno.land/r/sys/validators/validators.gno index 505876e8340..669b688727a 100644 --- a/examples/gno.land/r/sys/validators/validators.gno +++ b/examples/gno.land/r/sys/validators/validators.gno @@ -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" }