mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 20:55:50 +00:00
Fix indentation
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
// gotta use var here because const/let are block-scoped to the if statement.
|
// gotta use var here because const/let are block-scoped to the if statement.
|
||||||
var xrpl = require('xrpl')
|
var xrpl = require('xrpl')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect -------------------------------------------------------------------
|
// Connect -------------------------------------------------------------------
|
||||||
async function main() {
|
async function main() {
|
||||||
console.log("Connecting to Mainnet...")
|
console.log("Connecting to Mainnet...")
|
||||||
const client = new xrpl.Client('wss://s1.ripple.com')
|
const client = new xrpl.Client('wss://s1.ripple.com')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
@@ -30,7 +30,7 @@ if (typeof module !== "undefined") {
|
|||||||
await client.disconnect()
|
await client.disconnect()
|
||||||
|
|
||||||
// End main()
|
// End main()
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(console.error)
|
main().catch(console.error)
|
||||||
|
|
||||||
@@ -3,10 +3,10 @@
|
|||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
// gotta use var here because const/let are block-scoped to the if statement.
|
// gotta use var here because const/let are block-scoped to the if statement.
|
||||||
var xrpl = require('xrpl')
|
var xrpl = require('xrpl')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect -------------------------------------------------------------------
|
// Connect -------------------------------------------------------------------
|
||||||
async function main() {
|
async function main() {
|
||||||
console.log("Connecting to Mainnet...")
|
console.log("Connecting to Mainnet...")
|
||||||
const client = new xrpl.Client('wss://s1.ripple.com')
|
const client = new xrpl.Client('wss://s1.ripple.com')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
@@ -28,6 +28,6 @@ if (typeof module !== "undefined") {
|
|||||||
await client.disconnect()
|
await client.disconnect()
|
||||||
|
|
||||||
// End main()
|
// End main()
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(console.error)
|
main().catch(console.error)
|
||||||
|
|||||||
Reference in New Issue
Block a user