fix: rename testnet.solana.com to devnet.solana.com

This commit is contained in:
Michael Vines 2020-02-19 14:04:06 -07:00
parent 395b48ceef
commit 7d69cad81b
5 changed files with 14 additions and 21 deletions

View File

@ -18,7 +18,7 @@ const approver2 = new solanaWeb3.Account();
let url; let url;
url = 'http://localhost:8899'; url = 'http://localhost:8899';
//url = 'http://testnet.solana.com:8899'; //url = 'http://devnet.solana.com:8899';
const connection = new solanaWeb3.Connection(url, 'recent'); const connection = new solanaWeb3.Connection(url, 'recent');
const getTransactionFee = () => common.getTransactionFee(connection); const getTransactionFee = () => common.getTransactionFee(connection);
const showBalance = () => const showBalance = () =>

View File

@ -9,7 +9,7 @@ const solanaWeb3 = require('..');
const account = new solanaWeb3.Account(); const account = new solanaWeb3.Account();
let url; let url;
url = 'http://testnet.solana.com:8899'; url = 'http://devnet.solana.com:8899';
//url = 'http://localhost:8899'; //url = 'http://localhost:8899';
const connection = new solanaWeb3.Connection(url); const connection = new solanaWeb3.Connection(url);

View File

@ -7,14 +7,14 @@ import {testnetDefaultChannel} from '../../package.json';
*/ */
const endpoint = { const endpoint = {
http: { http: {
edge: 'http://edge.testnet.solana.com:8899', edge: 'http://edge.devnet.solana.com:8899',
beta: 'http://beta.testnet.solana.com:8899', beta: 'http://beta.devnet.solana.com:8899',
stable: 'http://testnet.solana.com:8899', stable: 'http://devnet.solana.com:8899',
}, },
https: { https: {
edge: 'https://edge.testnet.solana.com:8443', edge: 'https://edge.devnet.solana.com:8443',
beta: 'https://beta.testnet.solana.com:8443', beta: 'https://beta.devnet.solana.com:8443',
stable: 'https://testnet.solana.com:8443', stable: 'https://devnet.solana.com:8443',
}, },
}; };

View File

@ -9,15 +9,15 @@ test('invalid', () => {
test('edge', () => { test('edge', () => {
expect(testnetChannelEndpoint('edge')).toEqual( expect(testnetChannelEndpoint('edge')).toEqual(
'https://edge.testnet.solana.com:8443', 'https://edge.devnet.solana.com:8443',
); );
expect(testnetChannelEndpoint('edge', true)).toEqual( expect(testnetChannelEndpoint('edge', true)).toEqual(
'https://edge.testnet.solana.com:8443', 'https://edge.devnet.solana.com:8443',
); );
expect(testnetChannelEndpoint('edge', false)).toEqual( expect(testnetChannelEndpoint('edge', false)).toEqual(
'http://edge.testnet.solana.com:8899', 'http://edge.devnet.solana.com:8899',
); );
}); });

View File

@ -6,13 +6,6 @@
export const url = 'http://localhost:8899/'; export const url = 'http://localhost:8899/';
/* //export const url = 'https://devnet.solana.com:8443/';
export const url = 'https://edge.testnet.solana.com:8443/'; //export const url = 'http://devnet.solana.com:8899/';
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/';
*/