Skip to content

Commit

Permalink
fix x.relayPeerId type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mingder78 committed Oct 18, 2021
1 parent 9e737fe commit 9f1be30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions aqua/getting-started.aqua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "@fluencelabs/aqua-lib/builtin.aqua"

-- The service runs inside browser
service HelloPeer("HelloPeer"):
hello(from: PeerId) -> string

func sayHello(targetPeerId: PeerId, targetRelayPeerId: PeerId) -> string:
on targetPeerId via targetRelayPeerId:
res <- HelloPeer.hello(%init_peer_id%)
<- res
4 changes: 2 additions & 2 deletions pages/fluenceHello.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const Home: NextPage = () => {
const [helloMessage, setHelloMessage] = useState<string | null>(null)
const [peerIdInput, setPeerIdInput] = useState<string>('')
const [relayPeerIdInput, setRelayPeerIdInput] = useState<string>('')
const [peerId, setPeerId] = useState('')
const [relayPeerId, setRelayPeerId] = useState('')
const [peerId, setPeerId] = useState<string | null>('')
const [relayPeerId, setRelayPeerId] = useState<string | null>('')

const connect = async (relayPeerId: string) => {
try {
Expand Down

0 comments on commit 9f1be30

Please sign in to comment.