Skip to content

Commit

Permalink
enter to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
przemerr authored and przemerr committed Jun 10, 2024
1 parent 892f2ee commit 8a1582a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions exodusRecovery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cryptography = require('@liskhq/lisk-cryptography');
const cryptography = require('@liskhq/lisk-cryptography');
const readline = require('readline');
const nacl = require('tweetnacl');

Expand Down Expand Up @@ -60,8 +60,11 @@ rl.question('Enter your private key (hex format): ', (privateKeyHex) => {
} catch (error) {
console.error('Error:', error);
} finally {
rl.close();
process.exit(0);
rl.question('Press Enter to exit...', () => {
rl.close();
process.exit(0);
});
}
});
});

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"description": "Tool for creating backup JSON for the Lisk Desktop from a private key",
"main": "exodusRecovery.js",
},
"bin": {
"exodusRecovery": "./exodusRecovery.js"
},
Expand All @@ -13,7 +12,7 @@
"node": "18.x"
},
"dependencies": {
"@liskhq/lisk-cryptography": "^4.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"tweetnacl": "^1.0.3"
}
}

0 comments on commit 8a1582a

Please sign in to comment.