Reverted two changes.

This commit is contained in:
Christian Rinderknecht 2020-03-04 15:23:51 +01:00
parent 00e6959503
commit 313bb0c2b3
2 changed files with 2 additions and 10 deletions

View File

@ -4,11 +4,7 @@ type return is list (operation) * storage
function cb (const a : address; const s : storage) : return is
block {
const c : contract (unit) =
case (Tezos.get_entrypoint_opt ("%cb", a) : option (contract (unit))) of
Some (contract) -> contract
| None -> (failwith ("cb: Entrypoint not found.") : contract (unit))
end
const c : contract (unit) = get_entrypoint ("%cb", a)
} with (list [Tezos.transaction (unit, 0tez, c)], s)

View File

@ -2,11 +2,7 @@ type storage is unit
type return is list (operation) * storage
function cb (const s : storage) : return is block {
const c : contract (unit) =
case (Tezos.get_contract_opt (Tezos.sender) : option (contract (unit))) of
Some (contract) -> contract
| None -> (failwith ("cb: No contract.") : contract (unit))
end
const c : contract (unit) = get_contract (Tezos.sender)
} with (list [Tezos.transaction (unit, 0tez, c)], s)