Clarified Step 1 instructions

This commit is contained in:
AlexanderBuzz
2023-08-15 18:44:39 +02:00
parent 66908d0ea7
commit 742e89210d
14 changed files with 69 additions and 15 deletions

View File

@@ -43,7 +43,12 @@ const main = async () => {
if (!fs.existsSync(path.join(__dirname, WALLET_DIR , 'seed.txt'))) {
saveSaltedSeed(WALLET_DIR, seed, password)
} else {
seed = loadSaltedSeed(WALLET_DIR, password)
try {
seed = loadSaltedSeed(WALLET_DIR, password)
} catch (error) {
appWindow.webContents.send('open-password-dialog', true)
return
}
}
const wallet = xrpl.Wallet.fromSeed(seed)