Correct the devnet URL

This commit is contained in:
Dennis Dawson
2021-12-20 11:23:09 -08:00
committed by GitHub
parent b12bef27cb
commit 0fa15c3825

View File

@@ -10,7 +10,7 @@ if (typeof module !== "undefined") var xrpl = require('xrpl')
async function mintToken() { async function mintToken() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -46,7 +46,7 @@ async function mintToken() {
async function getTokens() { async function getTokens() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
const nfts = await client.request({ const nfts = await client.request({
@@ -63,7 +63,7 @@ async function getTokens() {
async function burnToken() { async function burnToken() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -95,7 +95,7 @@ async function burnToken() {
async function createSellOffer() { async function createSellOffer() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -150,7 +150,7 @@ async function createSellOffer() {
async function createBuyOffer() { async function createBuyOffer() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -206,7 +206,7 @@ async function createBuyOffer() {
async function cancelOffer() { async function cancelOffer() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -263,7 +263,7 @@ async function cancelOffer() {
async function getOffers() { async function getOffers() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
console.log("***Sell Offers***") console.log("***Sell Offers***")
@@ -297,7 +297,7 @@ async function getOffers() {
async function acceptSellOffer() { async function acceptSellOffer() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")
@@ -330,7 +330,7 @@ async function acceptSellOffer() {
async function acceptBuyOffer() { async function acceptBuyOffer() {
const wallet = xrpl.Wallet.fromSeed(secret.value) const wallet = xrpl.Wallet.fromSeed(secret.value)
const client = new xrpl.Client("wss://devnet.xrpl.org/:51233") const client = new xrpl.Client("wss://s.devnet.rippletest.net:51233")
await client.connect() await client.connect()
console.log("Connected to Sandbox") console.log("Connected to Sandbox")