fix: update devnet urls
This commit is contained in:
parent
18d4e40a79
commit
65113d3669
|
@ -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 = () =>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue