Fix service names

This commit is contained in:
Pavel Murygin 2021-08-06 12:40:28 +03:00
parent 99f5dd91e7
commit 2d125f5225

View File

@ -20,15 +20,11 @@ function App() {
.then((client) => {
// Register handler for this call in aqua:
// HelloWorld.recieveHello(%init_peer_id%)
client.callServiceHandler.onEvent(
"HelloWorld",
"recieveHello",
(args) => {
client.callServiceHandler.onEvent("HelloPeer", "hello", (args) => {
// no computation is done inside the browser
const [msg] = args;
setHelloMessage(msg);
}
);
});
setClient(client);
})
.catch((err) => console.log("Client initialization failed", err));