mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-05-12 15:07:24 +00:00
19 lines
370 B
Plaintext
19 lines
370 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
|