package main import ( "testing" "gno.land/p/gnoland/boards" boards2 "gno.land/r/boards000/v1rc1" ) const ( owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx name = "foo123" newName = "bar123" ) var bid boards.ID // Operate on board DAO func init() { testing.SetRealm(testing.NewUserRealm(owner)) bid = boards2.CreateBoard(cross, name, false) } func main() { testing.SetRealm(testing.NewUserRealm(owner)) boards2.RenameBoard(cross, name, newName) // Ensure board is renamed by the default board owner bid2, _ := boards2.GetBoardIDFromName(cross, newName) println("IDs match =", bid == bid2) } // Output: // IDs match = true