mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-08-01 04:42:12 +00:00
fix compilation
This commit is contained in:
@@ -117,7 +117,7 @@ export function tryCatchTest(...args: any) {
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call node_id ("op" "identity") [%last_error%.$.msg!] $f)
|
||||
(call node_id ("op" "identity") [%last_error%.$.message!] $f)
|
||||
(call node_id ("peer" "identify") [] i)
|
||||
)
|
||||
(call node_id ("op" "identity") [i.$.external_addresses.[0]!] $f)
|
||||
|
@@ -4,13 +4,11 @@ import { barfoo, wrap } from '../compiled/examples/imports_exports/import2';
|
||||
export async function import2Call() {
|
||||
registerOneMore('hello', {
|
||||
more_call: () => {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
|
||||
registerOneMore('ohmygod', {
|
||||
more_call: () => {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
|
||||
|
@@ -6,13 +6,13 @@ const main = async () => {
|
||||
await Fluence.start({ connectTo: krasnodar[0] });
|
||||
const relayPeerId = krasnodar[0].peerId;
|
||||
|
||||
const nodes = await getNeighbours(relayPeerId, 'random');
|
||||
const nodes = await getNeighbours(relayPeerId);
|
||||
console.log(nodes);
|
||||
|
||||
const topic = 'random';
|
||||
await initTopicAndSubscribe(relayPeerId, topic, 'random value', null, null);
|
||||
await initTopicAndSubscribe(relayPeerId, topic, null, null);
|
||||
|
||||
const result = await findSubscribers(relayPeerId, topic);
|
||||
const result = await findSubscribers(topic);
|
||||
|
||||
console.log(result);
|
||||
|
||||
|
@@ -31,7 +31,9 @@ import { literalCall } from './examples/returnLiteralCall';
|
||||
import { multiReturnCall } from './examples/multiReturnCall';
|
||||
import { declareCall } from './examples/declareCall';
|
||||
import { genOptions } from './examples/optionsCall';
|
||||
import { relays } from './config';
|
||||
import { config } from './config';
|
||||
|
||||
const relays = config.relays
|
||||
|
||||
export const runExamples = async () => {
|
||||
// stop the currently running peer to start with the clean state
|
||||
|
Reference in New Issue
Block a user