Skip to content

Commit 79e5042

Browse files
committed
added comments
1 parent bb7fd36 commit 79e5042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/read.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ import { WsProvider } from "@polkadot/api";
66

77

88
async function main() {
9+
// Bob's address
910
const ws = new WsProvider('ws://localhost:12346');
1011
const bobApi = await ApiPromise.create({ provider: ws });
1112
await bobApi.isReady;
1213
const chainSpec = (await bobApi.rpc.syncstate.genSyncSpec(true)).toString();
1314

14-
// Bob's address
15+
// Alice's address
1516
const provider = new WsProvider('ws://localhost:10000');
1617
const api = await ApiPromise.create({ provider });
1718
await api.isReady;

0 commit comments

Comments
 (0)