mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-07-01 13:51:48 +00:00
Update JS SDK version and migrate to the new JS API (#11)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import {FluenceClient} from "@fluencelabs/fluence";
|
||||
import {getTwoResults} from "../compiled/examples/foldJoin";
|
||||
import { FluencePeer } from '@fluencelabs/fluence';
|
||||
import { getTwoResults } from '../compiled/examples/foldJoin';
|
||||
|
||||
export async function foldJoinCall(client: FluenceClient): Promise<number[]> {
|
||||
return await getTwoResults(client, client.relayPeerId!, {ttl: 10000})
|
||||
export async function foldJoinCall(): Promise<number[]> {
|
||||
const relayPeerId = FluencePeer.default.connectionInfo.connectedRelay;
|
||||
return await getTwoResults(relayPeerId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user