fix compilation

This commit is contained in:
DieMyst
2022-01-12 14:21:49 +03:00
parent 90709262e2
commit 761284f5c7
4 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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 {};
},
});

View File

@@ -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);

View File

@@ -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