aqua/aqua-src/test.aqua

20 lines
425 B
Plaintext
Raw Normal View History

2022-02-02 16:06:35 +00:00
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!