mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
- Fixed snippet markers in tutorial for Step 3
This commit is contained in:
@@ -488,14 +488,13 @@ const TESTNET_URL = "wss://s.altnet.rippletest.net:51233"
|
||||
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({
|
||||
"command": "subscribe",
|
||||
@@ -540,8 +539,8 @@ 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