mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2026-08-22 18:50:55 +00:00
Fix links in desktop wallet tutorial & update some details
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user