mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-29 11:01:47 +00:00
12 lines
359 B
TypeScript
12 lines
359 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);
|
|
}
|