Fix links in desktop wallet tutorial & update some details

This commit is contained in:
mDuo13
2025-10-02 13:01:26 -07:00
parent 929a4cbced
commit fd82a05ca1
3 changed files with 51 additions and 139 deletions

View File

@@ -24,9 +24,10 @@ const createWindow = () => {
return appWindow
}
// Step 2 changes - main whenReady function - start
/**
* This function creates a XRPL client, subscribes to 'ledger' events from the XRPL and broadcasts those by
* dispatching the 'update-ledger-data' event which will be picked up by the frontend
* Create an XRPL client, subscribe to 'ledger' events, and broadcast those by
* dispatching an 'update-ledger-data' event to the frontend
*
* @returns {Promise<void>}
*/
@@ -51,3 +52,4 @@ const main = async () => {
}
app.whenReady().then(main)
// Step 2 changes - main whenReady function - end

View File

@@ -23,6 +23,7 @@ const createWindow = () => {
return appWindow
}
// Step 5 - new main function - start
const main = async () => {
const appWindow = createWindow()
@@ -51,8 +52,8 @@ const main = async () => {
}
const wallet = xrpl.Wallet.fromSeed(seed)
// For compatibility with seeds generated using secp256k1 (the old
// default algorithm), use the following instead:
// For compatibility with seeds generated using secp256k1
// (the old default algorithm), use the following instead:
// const wallet = xrpl.Wallet.fromSeed(seed, {algorithm: "secp256k1"})
const client = new xrpl.Client(TESTNET_URL)
@@ -83,5 +84,6 @@ const main = async () => {
}
})
}
// Step 5 - new main function - end
app.whenReady().then(main)