https://gitlab.com/tezos/tezos
Raw File
Tip revision: 4c7bc5991909be8e0b89e5587ab1c1dbbde0a958 authored by Marina Polubelova on 19 January 2024, 13:05:28 UTC
change consensus_rights_delay only for mainnet
Tip revision: 4c7bc59
self_01.tzt
# SELF inside CREATE_CONTRACT is valid, even if they both are inside a LAMBDA.
# SELF should produce a `contract` value with parameter matching the inner contract.
code {
       LAMBDA
         (pair (option key_hash) mutez unit)
         address
         { UNPAIR 3;
           CREATE_CONTRACT
             { code { SELF ; CAST (contract key); FAIL } ;
               storage unit ;
               parameter key } ;
           DROP;
         } ;
       DROP;
     } ;
input { } ;
output { }
back to top