ligo/src/test/contracts/self_without_entrypoint.ligo
2020-03-09 11:23:08 +01:00

11 lines
327 B
Plaintext

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)