def read_resolved

cswap-bend-cli@0.1.0.0 · store/ops.bend:259

import cswap-bend-cli@0.1.0.0/store/ops.bend as Ops
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq
import cswap-bend-cli@0.1.0.0/store/io.bend as SIo

259def read_resolved(+root: String, +r: SSeq.Resolved, +seq: Json.Json, +ident: String) -> Act.of(String):
260  match r:
261    case SSeq.RNone{}:
262      Act.fail(String, 3, "No account found with identifier: " ++ ident)
263    case SSeq.RAmb{msg}:
264      Act.fail(String, 1, msg)
265    case SSeq.RSlot{+n}:
266      SIo.read_cred(root, n, SIo.slot_email(seq, n))

Uses (8)

Used by (1)