DVM starter InitializePrivate() example for smart contract builder
()
| 2072 | |
| 2073 | // DVM starter InitializePrivate() example for smart contract builder |
| 2074 | func dvmInitFuncExample() string { |
| 2075 | return `Function InitializePrivate() Uint64 |
| 2076 | 10 IF EXISTS("owner") == 0 THEN GOTO 30 |
| 2077 | 20 RETURN 1 |
| 2078 | 30 STORE("owner", SIGNER()) |
| 2079 | 31 STORE("var_header_name", "") |
| 2080 | 32 STORE("var_header_description", "") |
| 2081 | 33 STORE("var_header_icon", "") |
| 2082 | 40 RETURN 0 |
| 2083 | End Function` |
| 2084 | } |
| 2085 | |
| 2086 | // DVM starter function for smart contract builder |
| 2087 | func dvmFuncExample(increment int) string { |
no outgoing calls
no test coverage detected