https://gitlab.com/tezos/tezos
Raw File
Tip revision: 859ad53d118deb65fda70547abe20731c6e92aba authored by Emma Turner on 09 October 2023, 10:54:43 UTC
nix: disable stackprotector on all platforms
Tip revision: 859ad53
sender_after_view.tz
# This contract calls the view `id` on the address passed as
# parameter. After returning from the view it stores its
# SENDER.
parameter address ;
storage address ;
code
     { CAR ;
       DUP ;
       PUSH nat 0 ;
       VIEW "id" (pair nat nat) ;
       ASSERT_SOME ;
       DROP ;
       CONTRACT nat ;
       ASSERT_SOME ;
       PUSH mutez 1500 ;
       PUSH nat 0 ;
       TRANSFER_TOKENS ;
       SENDER;
       SWAP ;
       NIL operation ;
       SWAP ;
       CONS ;
       PAIR
     } ;

back to top