mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-30 10:01:50 +00:00
11 lines
358 B
TypeScript
11 lines
358 B
TypeScript
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`
|
|
})
|
|
|
|
const res = await testFunc(client);
|
|
console.log("Message: ", res);
|
|
} |