mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-05-02 07:52:27 +00:00
11 lines
359 B
TypeScript
11 lines
359 B
TypeScript
|
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
||
|
import {d} from "../compiled/examples/nestedFuncs";
|
||
|
|
||
|
export async function nestedFuncsCall(client: FluenceClient): Promise<string> {
|
||
|
registerServiceFunction(client, "opa", "identity", (args: any[], _) => {
|
||
|
return args[0]
|
||
|
})
|
||
|
|
||
|
return await d(client, "some-str")
|
||
|
}
|