2019-11-09 01:27:30 -06:00
|
|
|
function cb(const a : address; const s : unit) : list(operation) * unit is
|
2019-11-19 17:19:12 -06:00
|
|
|
block {
|
|
|
|
const c : contract(unit) = get_entrypoint("%cb", a)
|
|
|
|
}
|
2019-11-09 01:27:30 -06:00
|
|
|
with (list transaction(unit, 0mutez, c) end, s)
|
2020-01-28 13:44:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
function cbo(const a : address; const s : unit) : list(operation) * unit is
|
|
|
|
block {
|
|
|
|
const c : contract(unit) =
|
|
|
|
case (get_entrypoint_opt("%cbo", a) : option(contract (unit))) of
|
|
|
|
| Some (c) -> c
|
|
|
|
| None -> (failwith ("entrypoint not found") : contract (unit))
|
|
|
|
end
|
|
|
|
}
|
|
|
|
with (list transaction(unit, 0mutez, c) end, s)
|