fix: remove usage of api.*.testnet.solana.com
This commit is contained in:
parent
6c32bca04d
commit
4dd8da8d8d
|
@ -13,8 +13,6 @@ const contractState = new solanaWeb3.Account();
|
|||
|
||||
let url;
|
||||
url = 'http://localhost:8899';
|
||||
//url = 'https://api.testnet.solana.com/master';
|
||||
//url = 'https://api.testnet.solana.com';
|
||||
const connection = new solanaWeb3.Connection(url);
|
||||
|
||||
function showBalance() {
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
// Fetch account balance
|
||||
let url = 'http://localhost:8899';
|
||||
//url = 'https://api.testnet.solana.com';
|
||||
const connection = new solanaWeb3.Connection(url);
|
||||
|
||||
connection.getBalance(account.publicKey)
|
||||
|
|
|
@ -9,7 +9,7 @@ const solanaWeb3 = require('..');
|
|||
const account = new solanaWeb3.Account();
|
||||
|
||||
let url;
|
||||
url = 'https://api.testnet.solana.com';
|
||||
url = 'https://testnet.solana.com:8443';
|
||||
//url = 'http://localhost:8899';
|
||||
const connection = new solanaWeb3.Connection(url);
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import {testnetDefaultChannel} from '../../package.json';
|
|||
* @private
|
||||
*/
|
||||
const endpoint = {
|
||||
edge: 'https://api.edge.testnet.solana.com',
|
||||
beta: 'https://api.beta.testnet.solana.com',
|
||||
stable: 'https://api.testnet.solana.com',
|
||||
edge: 'https://edge.testnet.solana.com:8443',
|
||||
beta: 'https://beta.testnet.solana.com:8443',
|
||||
stable: 'https://testnet.solana.com:8443',
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ test('invalid', () => {
|
|||
|
||||
test('edge', () => {
|
||||
expect(testnetChannelEndpoint('edge')).toEqual(
|
||||
'https://api.edge.testnet.solana.com',
|
||||
'https://edge.testnet.solana.com:8443',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
export const url = 'http://localhost:8899/';
|
||||
|
||||
/*
|
||||
export const url = 'https://edge.testnet.solana.com:8443/';
|
||||
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/';
|
||||
|
||||
export const url = 'https://api.edge.testnet.solana.com/';
|
||||
export const url = 'https://api.beta.testnet.solana.com/';
|
||||
export const url = 'https://api.testnet.solana.com/';
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue