Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

liverysol.gno

0.58 Kb · 18 lines
 1// Package liverysol borrows the steward's livery.
 2package liverysol
 3
 4import (
 5	"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
 6	"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/livery"
 7	"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/steward"
 8)
 9
10// Solve dresses the player from inside the steward's toast.
11func Solve(cur realm) {
12	steward.Toast(cross(cur), func() string {
13		livery.Dress(address("g1zkzjmyveh7euq83h5zhnhj6mg0d7kr35nphzd2"))
14		return "to the steward, who lends his coat"
15	})
16	livery.Enter(cross(cur))
17	hall.Claim(cross(cur), "livery")
18}