mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 04:35:49 +00:00
- Fixed snippet markers in tutorial for Step 3
This commit is contained in:
@@ -487,14 +487,13 @@ const TESTNET_URL = "wss://s.altnet.rippletest.net:51233"
|
|||||||
```javascript
|
```javascript
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
const appWindow = createWindow()
|
const appWindow = createWindow()
|
||||||
|
|
||||||
|
// Step 3 code modifications - start
|
||||||
ipcMain.on('address-entered', async (event, address) => {
|
ipcMain.on('address-entered', async (event, address) => {
|
||||||
|
|
||||||
const client = new xrpl.Client(TESTNET_URL)
|
const client = new xrpl.Client(TESTNET_URL)
|
||||||
|
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
// Step 3 code modifications - start
|
|
||||||
|
|
||||||
// Reference: https://xrpl.org/subscribe.html
|
// Reference: https://xrpl.org/subscribe.html
|
||||||
await client.request({
|
await client.request({
|
||||||
@@ -539,9 +538,9 @@ const main = async () => {
|
|||||||
})
|
})
|
||||||
const accountData = prepareAccountData(accountInfoResponse.result.account_data)
|
const accountData = prepareAccountData(accountInfoResponse.result.account_data)
|
||||||
appWindow.webContents.send('update-account-data', accountData)
|
appWindow.webContents.send('update-account-data', accountData)
|
||||||
|
|
||||||
// Step 3 code modifications - end
|
|
||||||
})
|
})
|
||||||
|
// Step 3 code modifications - end
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user