ligo/src/test/contracts/address.ligo
2019-12-17 11:10:29 +01:00

5 lines
192 B
Plaintext

// function main (const c: contract(unit)) : address is address(c)
function main (const p : key_hash) : address is block {
const c : contract(unit) = implicit_account(p) ;
} with address(c)