()
| 755 | } |
| 756 | |
| 757 | function getExcludedFromDataFile() { |
| 758 | let parsedData = csvParse(EXCLUSIONS_DATA_CSV); |
| 759 | let validData = parsedData.filter(row => web3.utils.isAddress(row[0])); |
| 760 | let invalidRows = parsedData.filter(row => !validData.includes(row)); |
| 761 | if (invalidRows.length > 0) { |
| 762 | console.log(chalk.red(`The following lines from csv file are not valid: ${invalidRows.map(r => parsedData.indexOf(r) + 1).join(',')} `)); |
| 763 | } |
| 764 | let batches = common.splitIntoBatches(validData, validData.length); |
| 765 | let [data] = common.transposeBatches(batches); |
| 766 | |
| 767 | return data; |
| 768 | } |
| 769 | |
| 770 | function showExcluded(excluded) { |
| 771 | console.log('Current default excluded addresses:') |
no outgoing calls
no test coverage detected