fix: update devnet urls
This commit is contained in:
parent
18d4e40a79
commit
65113d3669
|
@ -18,7 +18,7 @@ const approver2 = new solanaWeb3.Account();
|
||||||
|
|
||||||
let url;
|
let url;
|
||||||
url = 'http://localhost:8899';
|
url = 'http://localhost:8899';
|
||||||
//url = 'http://devnet.solana.com:8899';
|
//url = 'http://devnet.solana.com';
|
||||||
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 = () =>
|
||||||
|
|
|
@ -9,7 +9,7 @@ const solanaWeb3 = require('..');
|
||||||
const account = new solanaWeb3.Account();
|
const account = new solanaWeb3.Account();
|
||||||
|
|
||||||
let url;
|
let url;
|
||||||
url = 'http://devnet.solana.com:8899';
|
url = 'http://devnet.solana.com';
|
||||||
//url = 'http://localhost:8899';
|
//url = 'http://localhost:8899';
|
||||||
const connection = new solanaWeb3.Connection(url);
|
const connection = new solanaWeb3.Connection(url);
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,12 @@ const endpoint = {
|
||||||
http: {
|
http: {
|
||||||
edge: 'http://edge.devnet.solana.com:8899',
|
edge: 'http://edge.devnet.solana.com:8899',
|
||||||
beta: 'http://beta.devnet.solana.com:8899',
|
beta: 'http://beta.devnet.solana.com:8899',
|
||||||
stable: 'http://devnet.solana.com:8899',
|
stable: 'http://devnet.solana.com',
|
||||||
},
|
},
|
||||||
https: {
|
https: {
|
||||||
edge: 'https://edge.devnet.solana.com:8443',
|
edge: 'https://edge.devnet.solana.com:8443',
|
||||||
beta: 'https://beta.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();
|
}).toThrow();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('edge', () => {
|
test('stable', () => {
|
||||||
expect(testnetChannelEndpoint('edge')).toEqual(
|
expect(testnetChannelEndpoint('stable')).toEqual(
|
||||||
'https://edge.devnet.solana.com:8443',
|
'https://devnet.solana.com',
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(testnetChannelEndpoint('edge', true)).toEqual(
|
expect(testnetChannelEndpoint('stable', true)).toEqual(
|
||||||
'https://edge.devnet.solana.com:8443',
|
'https://devnet.solana.com',
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(testnetChannelEndpoint('edge', false)).toEqual(
|
expect(testnetChannelEndpoint('stable', false)).toEqual(
|
||||||
'http://edge.devnet.solana.com:8899',
|
'http://devnet.solana.com',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue