def read.next

ezx@1.11.0.0 · src/lock/up.bend:1146

import ezx@1.11.0.0/src/lock/up.bend as Up
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

1146# the ledger the lock is made from: the one the upgrade writes, read back, or
1147# ez.toml as it was when nothing moved
1148def read.next(moved: Bool, +text: String, old: M.Manifest) -> M.Read:
1149  match moved:
1150    case True{}:
1151      M.parse(text)
1152    case False{}:
1153      M.Good{old}

Uses (5)

Used by (1)