X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=bin%2Fcrowdnode.js;h=60a251f451d7b43f6f92fff2446e9f4ac995acd2;hb=3561bf72d0e69d7a84e8b2d5915344b5c21cb9b4;hp=943eaa83ad6f071ca534a5b3f97d8765f674e59c;hpb=b03dfe1c5fb0f6d008a81f9ebd2442e29d3707c8;p=crowdnode.js%2F.git diff --git a/bin/crowdnode.js b/bin/crowdnode.js index 943eaa8..60a251f 100755 --- a/bin/crowdnode.js +++ b/bin/crowdnode.js @@ -314,20 +314,19 @@ async function generate(name) { return; } - await Fs.writeFile(filepath, wif, "utf8").then(function () { - console.info(``); - console.info( - `Use the QR Code below to load a test deposit of Đ${testDash} onto your staking key.`, - ); - console.info(``); - showQr(pub, testDuff); - console.info(``); - console.info( - `Use the QR Code above to load a test deposit of Đ${testDash} onto your staking key.`, - ); - console.info(``); - console.info(`Generated ${filepath} ${note}`); - }); + await Fs.writeFile(filepath, wif, "utf8"); + console.info(``); + console.info( + `Use the QR Code below to load a test deposit of Đ${testDash} onto your staking key.`, + ); + console.info(``); + showQr(pub, testDuff); + console.info(``); + console.info( + `Use the QR Code above to load a test deposit of Đ${testDash} onto your staking key.`, + ); + console.info(``); + console.info(`Generated ${filepath} ${note}`); process.exit(0); }