fix: remove usage of api.*.testnet.solana.com
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user