Hey here is my little script:
for (let i = 0; i < test.length; i++) {
if(publicKey.startsWith(test[i])) {
console.log(seed + " =[HIT]= " + publicKey)
fs.appendFile(publicKey.toString() + '.txt', mnemonic.toString(), function (err) {
if (err) throw err;
console.log('Finished!');
});
exit();
} else {
console.log(seed + " =[FAILED]= " + publicKey)
}
}
It does create my file but without any text? I tried to put in random text, but it did not work either. Is there a way to fix this?