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
balance_after_fib_view.tz
# This contract calls the view `fib` on the address passed as
# parameter. After returning from the view it stores its BALANCE.
parameter address ;
storage mutez;
code
     { CAR ;
       DUP ;
       PUSH nat 3 ;
       VIEW "fib" nat;
       ASSERT_SOME ;
       DROP ;
       CONTRACT nat ;
       ASSERT_SOME ;
       PUSH mutez 15000000 ;
       PUSH nat 0 ;
       TRANSFER_TOKENS ;
       BALANCE;
       SWAP ;
       NIL operation ;
       SWAP ;
       CONS ;
       PAIR
     } ;


back to top