fix: update devnet urls

This commit is contained in:
Michael Vines 2020-03-10 21:13:31 -07:00
parent 18d4e40a79
commit 65113d3669
4 changed files with 11 additions and 11 deletions

View File

@ -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 = () =>

View File

@ -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);

View File

@ -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',
},
};

View File

@ -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',
);
});