Skip to content

Commit 25fefda

Browse files
authored
fix: reconnection to the node (#11)
1 parent 49e694a commit 25fefda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import config from './config.js';
55

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

8-
export const api = new ApiPromise({ provider });
8+
export let api = new ApiPromise({ provider });
99

1010
export async function connect() {
1111
await api.isReadyOrError;

0 commit comments

Comments
 (0)