examples/multi-service/air-scripts/get_address.clj

16 lines
446 B
Clojure
Raw Normal View History

2021-03-04 07:57:19 +00:00
(xor
(seq
(seq
(call relay ("op" "identity") [])
(call my_node (service "extract_miner_address") [json_string] result)
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") [result])
)
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
)
)