Skip to content

Commit

Permalink
fix: reconnection to the node (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
osipov-mit authored Jan 26, 2024
1 parent 49e694a commit 25fefda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import config from './config.js';

const provider = new WsProvider(config.network.addresses, 10000);

export const api = new ApiPromise({ provider });
export let api = new ApiPromise({ provider });

export async function connect() {
await api.isReadyOrError;
Expand Down

0 comments on commit 25fefda

Please sign in to comment.