examples/intro/1-hello-world/aqua/getting-started.aqua

10 lines
280 B
Plaintext
Raw Normal View History

2021-07-20 14:00:26 +03:00
import "@fluencelabs/aqua-lib/builtin.aqua"
service HelloWorld("HelloWorld"):
recieveHello(from: PeerId) -> string
func sayHello(peerId: PeerId, relayPeerId: PeerId) -> string:
on peerId via relayPeerId:
res <- HelloWorld.recieveHello(%init_peer_id%)
<- res