aqua/aqua-src/test.aqua
2022-02-02 19:06:35 +03:00

20 lines
425 B
Plaintext

import "@fluencelabs/aqua-ipfs/ipfs.aqua"
service Console("run-console"):
print(res: IpfsGetResult)
service ConsoleOp("run-console"):
print(arr: []string)
func something(node: string) -> string:
service_id: *string
on HOST_PEER_ID:
res <- Ipfs.get("1234")
if res.error == "":
service_id <<- "0x"
else:
service_id <<- "1x"
ConsoleOp.print(service_id)
Console.print(res)
<- service_id!