def verdict_act

cswap-bend-cli@0.1.0.0 · store.bend:103

import cswap-bend-cli@0.1.0.0/store.bend as Store
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/plan.bend as SPlan

103# Fail on an owner mismatch; a notice when it could not be checked.
104def verdict_act(+v: SPlan.Verdict, +email: String) -> Act.of(String):
105  match v:
106    case SPlan.VOk{}:
107      Act.pure(String, "")
108    case SPlan.VUnverified{why}:
109      Act.pure(String, notice_text(email, why))
110    case SPlan.VBad{msg}:
111      Act.fail(String, 1, msg)

Uses (6)

Used by (1)