mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-04-01 05:01:07 +00:00
19 lines
369 B
Plaintext
19 lines
369 B
Plaintext
service Unexisted("unex"):
|
|
getStr() -> string
|
|
|
|
data LastError:
|
|
instruction: string
|
|
msg: string
|
|
peer_id: string
|
|
|
|
service OpE("op"):
|
|
identity(s: string) -> string
|
|
|
|
func tryOtherwiseTest(node_id: string) -> string:
|
|
on node_id:
|
|
f: *string
|
|
try:
|
|
f <- Unexisted.getStr()
|
|
otherwise:
|
|
f <- OpE.identity("error")
|
|
<- f! |