Reverted two changes.
This commit is contained in:
parent
00e6959503
commit
313bb0c2b3
@ -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)
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user