def tool.ref
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
945# the ref to resolve: the tag the ledger named, or the default ref
946def tool.ref(no_tag: Bool, +rs: List<&2, Reply>, +url: String, +tag: String) -> Named:
947 match no_tag:
948 case False{}:
949 Named{tag}
950 case True{}:
951 tool.default(rs, url)