diff --git a/web3.js/examples/budget-two-approvers.js b/web3.js/examples/budget-two-approvers.js index a170cb769b..6e4458e1b8 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://devnet.solana.com:8899'; +//url = 'http://devnet.solana.com'; 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 e2051187e7..f03351f912 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://devnet.solana.com:8899'; +url = 'http://devnet.solana.com'; //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 2a1f50fda7..d20aac7d2d 100644 --- a/web3.js/src/util/testnet.js +++ b/web3.js/src/util/testnet.js @@ -9,12 +9,12 @@ const endpoint = { http: { edge: 'http://edge.devnet.solana.com:8899', beta: 'http://beta.devnet.solana.com:8899', - stable: 'http://devnet.solana.com:8899', + stable: 'http://devnet.solana.com', }, https: { edge: 'https://edge.devnet.solana.com:8443', beta: 'https://beta.devnet.solana.com:8443', - stable: 'https://devnet.solana.com:8443', + stable: 'https://devnet.solana.com', }, }; diff --git a/web3.js/test/testnet.test.js b/web3.js/test/testnet.test.js index c906422b6f..30ff820dc1 100644 --- a/web3.js/test/testnet.test.js +++ b/web3.js/test/testnet.test.js @@ -7,17 +7,17 @@ test('invalid', () => { }).toThrow(); }); -test('edge', () => { - expect(testnetChannelEndpoint('edge')).toEqual( - 'https://edge.devnet.solana.com:8443', +test('stable', () => { + expect(testnetChannelEndpoint('stable')).toEqual( + 'https://devnet.solana.com', ); - expect(testnetChannelEndpoint('edge', true)).toEqual( - 'https://edge.devnet.solana.com:8443', + expect(testnetChannelEndpoint('stable', true)).toEqual( + 'https://devnet.solana.com', ); - expect(testnetChannelEndpoint('edge', false)).toEqual( - 'http://edge.devnet.solana.com:8899', + expect(testnetChannelEndpoint('stable', false)).toEqual( + 'http://devnet.solana.com', ); });