add validation to ProfileConstructor addSigningAccounts to work when no nodes are defined
This commit is contained in:
1 parent
2935e989f7
commit
7ed3876d19
1 file changed
+1
@@ -232,6 +232,7 @@ function newGovernanceFunctionLibraryProfileConstructor() {
|
||||
addSigningAccounts(p2pNetworkNodes, 'P2P Network Node')
|
||||
|
||||
function addSigningAccounts(nodeArray, targetNodeType) {
|
||||
if (nodeArray === undefined) return;
|
||||
for (let i = 0; i < nodeArray.length; i++) {
|
||||
let currentNode = nodeArray[i]
|
||||
addSigningAccount(currentNode, targetNodeType, i + 1)
|
||||
|
||||
Reference in new issue
Block a user