mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +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
|
||||
const main = async () => {
|
||||
const appWindow = createWindow()
|
||||
|
||||
|
||||
// Step 3 code modifications - start
|
||||
ipcMain.on('address-entered', async (event, address) => {
|
||||
|
||||
const client = new xrpl.Client(TESTNET_URL)
|
||||
|
||||
await client.connect()
|
||||
|
||||
// Step 3 code modifications - start
|
||||
|
||||
// Reference: https://xrpl.org/subscribe.html
|
||||
await client.request({
|
||||
@@ -539,9 +538,9 @@ const main = async () => {
|
||||
})
|
||||
const accountData = prepareAccountData(accountInfoResponse.result.account_data)
|
||||
appWindow.webContents.send('update-account-data', accountData)
|
||||
|
||||
// Step 3 code modifications - end
|
||||
|
||||
})
|
||||
// Step 3 code modifications - end
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user