mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-30 16:11:54 +00:00
19 lines
543 B
TypeScript
19 lines
543 B
TypeScript
import { Fluence } from '@fluencelabs/fluence';
|
|
import { doStuff, registerTestS } from '../compiled/examples/complex';
|
|
|
|
export async function complexCall() {
|
|
const relayPeerId = Fluence.getPeer().getStatus().relayPeerId;
|
|
const selfPeerId = Fluence.getPeer().getStatus().peerId;
|
|
|
|
registerTestS({
|
|
t: (arg0) => {
|
|
return arg0;
|
|
},
|
|
multiline: (a, b, c) => {
|
|
return b;
|
|
},
|
|
});
|
|
|
|
return await doStuff(relayPeerId, selfPeerId, true, true, ['1', '2'], ['3', '4'], 'some str');
|
|
}
|