diff --git a/web3.js/examples/budget-two-approvers.js b/web3.js/examples/budget-two-approvers.js index e1dff6d5b5..a170cb769b 100644 --- a/web3.js/examples/budget-two-approvers.js +++ b/web3.js/examples/budget-two-approvers.js @@ -18,7 +18,7 @@ const approver2 = new solanaWeb3.Account(); let url; url = 'http://localhost:8899'; -//url = 'http://testnet.solana.com:8899'; +//url = 'http://devnet.solana.com:8899'; const connection = new solanaWeb3.Connection(url, 'recent'); const getTransactionFee = () => common.getTransactionFee(connection); const showBalance = () => diff --git a/web3.js/examples/get-balance.js b/web3.js/examples/get-balance.js index d2358afe45..e2051187e7 100644 --- a/web3.js/examples/get-balance.js +++ b/web3.js/examples/get-balance.js @@ -9,7 +9,7 @@ const solanaWeb3 = require('..'); const account = new solanaWeb3.Account(); let url; -url = 'http://testnet.solana.com:8899'; +url = 'http://devnet.solana.com:8899'; //url = 'http://localhost:8899'; const connection = new solanaWeb3.Connection(url); diff --git a/web3.js/src/util/testnet.js b/web3.js/src/util/testnet.js index 2d5c33b65e..2a1f50fda7 100644 --- a/web3.js/src/util/testnet.js +++ b/web3.js/src/util/testnet.js @@ -7,14 +7,14 @@ import {testnetDefaultChannel} from '../../package.json'; */ const endpoint = { http: { - edge: 'http://edge.testnet.solana.com:8899', - beta: 'http://beta.testnet.solana.com:8899', - stable: 'http://testnet.solana.com:8899', + edge: 'http://edge.devnet.solana.com:8899', + beta: 'http://beta.devnet.solana.com:8899', + stable: 'http://devnet.solana.com:8899', }, https: { - edge: 'https://edge.testnet.solana.com:8443', - beta: 'https://beta.testnet.solana.com:8443', - stable: 'https://testnet.solana.com:8443', + edge: 'https://edge.devnet.solana.com:8443', + beta: 'https://beta.devnet.solana.com:8443', + stable: 'https://devnet.solana.com:8443', }, }; diff --git a/web3.js/test/testnet.test.js b/web3.js/test/testnet.test.js index ad943b58f6..c906422b6f 100644 --- a/web3.js/test/testnet.test.js +++ b/web3.js/test/testnet.test.js @@ -9,15 +9,15 @@ test('invalid', () => { test('edge', () => { expect(testnetChannelEndpoint('edge')).toEqual( - 'https://edge.testnet.solana.com:8443', + 'https://edge.devnet.solana.com:8443', ); expect(testnetChannelEndpoint('edge', true)).toEqual( - 'https://edge.testnet.solana.com:8443', + 'https://edge.devnet.solana.com:8443', ); expect(testnetChannelEndpoint('edge', false)).toEqual( - 'http://edge.testnet.solana.com:8899', + 'http://edge.devnet.solana.com:8899', ); }); diff --git a/web3.js/test/url.js b/web3.js/test/url.js index 3cb6b087f9..d83eb4f63e 100644 --- a/web3.js/test/url.js +++ b/web3.js/test/url.js @@ -6,13 +6,6 @@ export const url = 'http://localhost:8899/'; -/* -export const url = 'https://edge.testnet.solana.com:8443/'; -export const url = 'https://beta.testnet.solana.com:8443/'; -export const url = 'https://testnet.solana.com:8443/'; -*/ -/* -export const url = 'http://edge.testnet.solana.com:8899/'; -export const url = 'http://beta.testnet.solana.com:8899/'; -export const url = 'http://testnet.solana.com:8899/'; -*/ +//export const url = 'https://devnet.solana.com:8443/'; +//export const url = 'http://devnet.solana.com:8899/'; +