BCD

Tezos Contract Explorer
Search Networks Deploy
  • Home
  • /
  • Ghostnet
  • /
  • KT1NAwL...FHQK
operations (1)Storage Code Interact Tokens Fork Statistics Details
Latest
​x
25
 
1
parameter (map %add_string string string);
2
storage (big_map address string);
3
code { UNPAIR ;
4
       PUSH nat 0 ;
5
       DUP 2 ;
6
       PUSH string "new_resolution" ;
7
       GET ;
8
       IF_NONE { PUSH int 10 ; FAILWITH } {} ;
9
       SIZE ;
10
       COMPARE ;
11
       GT ;
12
       IF {} { PUSH string "String must not be empty." ; FAILWITH } ;
13
       PUSH string "new_resolution" ;
14
       GET ;
15
       IF_NONE { PUSH int 11 ; FAILWITH } {} ;
16
       SOME ;
17
       SENDER ;
18
       UPDATE ;
19
       PUSH mutez 1000000 ;
20
       AMOUNT ;
21
       COMPARE ;
22
       GE ;
23
       IF {} { PUSH string "Insufficient funds to add the resolution." ; FAILWITH } ;
24
       NIL operation ;
25
       PAIR }