Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Fix array name #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ngo-lambda/src/setupChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function setupChannel() {
if (!peer) {
let peerEndpoints = config.peerEndpoint.split(",");
for (let i in peerEndpoints) {
channel.addPeer(client.newPeer(peerEndpoint[i], {pem:pemfile}));
channel.addPeer(client.newPeer(peerEndpoints[i], {pem:pemfile}));
// Additional peer settings: https://fabric-sdk-node.github.io/Channel.html#addPeer__anchor
}
}
Expand All @@ -52,4 +52,4 @@ async function setupChannel() {
return channel;
}

module.exports = setupChannel;
module.exports = setupChannel;