Revision a763dde6d0df28614dc8224591d94cb581237bd0 authored by Lucas Randazzo on 29 February 2024, 12:40:59 UTC, committed by Lucas Randazzo on 06 March 2024, 09:58:18 UTC
1 parent c1669fe
Raw File
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