Improve rpc result validation

This commit is contained in:
Michael Vines
2018-09-26 19:54:59 -07:00
parent 92af6e3341
commit a3aecba1d0
2 changed files with 39 additions and 58 deletions

View File

@ -5,9 +5,9 @@ import {Connection} from '../src/connection';
import {SystemProgram} from '../src/system-program';
import {mockRpc} from './__mocks__/node-fetch';
let url = 'http://testnet.solana.com:8899';
let url = 'http://localhost:8899';
//url = 'http://testnet.solana.com:8899';
//url = 'http://master.testnet.solana.com:8899';
//url = 'http://localhost:8899';
const errorMessage = 'Invalid request';
const errorResponse = {