add validation to ProfileConstructor addSigningAccounts to work when no nodes are defined

This commit is contained in:
Axel committed 2021-11-29 18:35:22 -03:00
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)