Files
aqua-playground/src/funcCall.ts

12 lines
359 B
TypeScript
Raw Normal View History

2021-04-14 02:38:35 +03:00
import {testFunc} from "./compiled/func";
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
export async function funcCall(client: FluenceClient) {
registerServiceFunction(client, "srv", "str", (args: any[], _) => {
return `some str`
2021-04-14 02:38:35 +03:00
})
const res = await testFunc(client);
console.log("Message: ", res);
2021-04-15 12:45:18 +03:00
}