mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-29 23:51:40 +00:00
11 lines
379 B
TypeScript
11 lines
379 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` as unknown as object
|
||
|
})
|
||
|
|
||
|
const res = await testFunc(client);
|
||
|
console.log("Message: ", res);
|
||
|
}
|