ligo/src/test/contracts/self_without_entrypoint.ligo

11 lines
327 B
Plaintext
Raw Normal View History

type parameter is int
type storage is nat
type return is list (operation) * storage
function main (const p : parameter; const s : storage) : return is
block {
const self_contract: contract(int) = Tezos.self("%Default") ;
const op : operation = Tezos.transaction (2, 300tz, self_contract) ;
}
with (list [op], s)