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
|
function cb (const a : address; const s : storage) : return is
|
||||||
block {
|
block {
|
||||||
const c : contract (unit) =
|
const c : contract (unit) = get_entrypoint ("%cb", a)
|
||||||
case (Tezos.get_entrypoint_opt ("%cb", a) : option (contract (unit))) of
|
|
||||||
Some (contract) -> contract
|
|
||||||
| None -> (failwith ("cb: Entrypoint not found.") : contract (unit))
|
|
||||||
end
|
|
||||||
} with (list [Tezos.transaction (unit, 0tez, c)], s)
|
} with (list [Tezos.transaction (unit, 0tez, c)], s)
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,11 +2,7 @@ type storage is unit
|
|||||||
type return is list (operation) * storage
|
type return is list (operation) * storage
|
||||||
|
|
||||||
function cb (const s : storage) : return is block {
|
function cb (const s : storage) : return is block {
|
||||||
const c : contract (unit) =
|
const c : contract (unit) = get_contract (Tezos.sender)
|
||||||
case (Tezos.get_contract_opt (Tezos.sender) : option (contract (unit))) of
|
|
||||||
Some (contract) -> contract
|
|
||||||
| None -> (failwith ("cb: No contract.") : contract (unit))
|
|
||||||
end
|
|
||||||
} with (list [Tezos.transaction (unit, 0tez, c)], s)
|
} with (list [Tezos.transaction (unit, 0tez, c)], s)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user