mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 19:50:51 +00:00
15 lines
397 B
Plaintext
15 lines
397 B
Plaintext
service Getter("test"):
|
|
createStr: u32 -> string
|
|
|
|
service OpO("op"):
|
|
identity: string -> string
|
|
|
|
-- a question mark means that this constant could be rewritten before this definition
|
|
const anotherConst ?= "default-str"
|
|
const uniqueConst ?= 5
|
|
|
|
func callConstant() -> []string, u8:
|
|
res: *string
|
|
res <- Getter.createStr(uniqueConst)
|
|
res <- OpO.identity(anotherConst)
|
|
<- res, 5 |