diff --git a/go/buscompose/accounts.go b/go/buscompose/accounts.go index 5a08036..2f64e70 100644 --- a/go/buscompose/accounts.go +++ b/go/buscompose/accounts.go @@ -226,24 +226,24 @@ type LeaseHolder struct { func LeaseHandedAway(raw []byte, found bool, readErr error) (bool, string) { switch { case readErr != nil: - return false, "the controller's lease cannot be read (" + readErr.Error() + "), so nothing is minted" + return false, "the controller's lease cannot be read (" + readErr.Error() + "), so it is not handed away" case !found || len(raw) == 0 || string(raw) == "null": - return false, "no lease is written (expired, deleted, or never taken): a controller may take it, so nothing is minted" + return false, "no lease is written (expired, deleted, or never taken): a controller may take it, so it is not handed away" } var h LeaseHolder if err := json.Unmarshal(raw, &h); err != nil { - return false, "the controller's lease is not readable as a holder (" + err.Error() + "), so nothing is minted" + return false, "the controller's lease is not readable as a holder (" + err.Error() + "), so it is not handed away" } if strings.TrimSpace(h.HandedTo) == "" { who := h.Instance if who == "" { who = "an instance that names itself not" } - return false, "the controller holds the lease (" + who + "): it mints, so the vault mints nothing (ADR 0561 §3)" + return false, "the controller holds the lease (" + who + "), so it is not handed away (ADR 0561 §3)" } if h.Instance != "" { return false, "the lease names both a controller instance (" + h.Instance + ") and a holder it is handed to (" + - h.HandedTo + "), so nothing is minted" + h.HandedTo + "), so it is not handed away" } - return true, "the lease is handed to " + h.HandedTo + ": the vault mints every new account (ADR 0561 §1, §3)" + return true, "the lease is handed to " + h.HandedTo + " (ADR 0561 §3)" }