fix: remove usage of api.*.testnet.solana.com

This commit is contained in:
Michael Vines
2019-07-24 16:38:57 -07:00
parent 6c32bca04d
commit 4dd8da8d8d
6 changed files with 10 additions and 12 deletions

View File

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

View File

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

View File

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