Remove .on(error) as it isn't part of the tutorial

This commit is contained in:
Jackson Mills
2021-10-21 16:29:05 -07:00
parent 55eaed4b68
commit 18497792fb
7 changed files with 0 additions and 26 deletions

View File

@@ -11,10 +11,6 @@ async function main() {
const client = new xrpl.Client('wss://s1.ripple.com')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
// Request account info for my_address to check account settings ------------

View File

@@ -11,10 +11,6 @@ async function main() {
const client = new xrpl.Client('wss://s1.ripple.com')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn'
const counterparty_address = 'rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v'
const frozen_currency = 'USD'

View File

@@ -11,10 +11,6 @@ async function main() {
const client = new xrpl.Client('wss://s1.ripple.com')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
// Request account info for my_address to check account settings ------------

View File

@@ -10,9 +10,6 @@ async function main() {
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
// Get credentials from the Testnet Faucet ------------------------------------
console.log("Requesting an address from the Testnet faucet...")
const { wallet, balance } = await client.fundWallet()

View File

@@ -10,9 +10,6 @@ async function main() {
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
// Get credentials from the Testnet Faucet -----------------------------------
console.log("Requesting an address from the Testnet faucet...")
const { wallet, balance } = await client.fundWallet()

View File

@@ -10,10 +10,6 @@ async function main() {
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
await client.connect()
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
// Get credentials from the Testnet Faucet ------------------------------------
console.log("Requesting an address from the Testnet faucet...")
const { wallet, balance } = await client.fundWallet()

View File

@@ -11,10 +11,6 @@ async function main() {
await client.connect()
console.log("Connected to Testnet")
client.on('error', (errorCode, errorMessage) => {
console.log(errorCode + ': ' + errorMessage)
})
// Get credentials from the Testnet Faucet ------------------------------------
console.log("Requesting an address from the Testnet faucet...")
const { wallet, balance } = await client.fundWallet()