From 276678727a1b079ad266070974c91154ac5f51c1 Mon Sep 17 00:00:00 2001 From: tonyboylehub Date: Fri, 3 Jan 2025 18:17:57 +0000 Subject: [PATCH] fixed nits --- packages/umi-rpc-web3js/test/getGenesisHash.test.ts | 7 ++++--- packages/umi-rpc-web3js/test/simulateTransaction.test.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/umi-rpc-web3js/test/getGenesisHash.test.ts b/packages/umi-rpc-web3js/test/getGenesisHash.test.ts index 596919f..d2ea927 100644 --- a/packages/umi-rpc-web3js/test/getGenesisHash.test.ts +++ b/packages/umi-rpc-web3js/test/getGenesisHash.test.ts @@ -2,11 +2,12 @@ import { createNullContext } from '@metaplex-foundation/umi'; import test from 'ava'; import { createWeb3JsRpc } from '../src'; -const LOCALHOST = 'http://127.0.0.1:8899'; - test('fetches and returns a genesis hash', async (t) => { // Given an RPC client. - const rpc = createWeb3JsRpc(createNullContext(), LOCALHOST); + const rpc = createWeb3JsRpc( + createNullContext(), + 'https://api.devnet.solana.com' + ); // When we get the rent for a given amount of bytes. const hash = await rpc.getGenesisHash(); diff --git a/packages/umi-rpc-web3js/test/simulateTransaction.test.ts b/packages/umi-rpc-web3js/test/simulateTransaction.test.ts index 0fc6aea..763ac97 100644 --- a/packages/umi-rpc-web3js/test/simulateTransaction.test.ts +++ b/packages/umi-rpc-web3js/test/simulateTransaction.test.ts @@ -123,7 +123,7 @@ test('simulates a V0 transaction', async (t) => { ); }); -test('simulates a transaction and fails with insufficant rent err', async (t) => { +test('simulates a transaction and fails with Insufficient rent err', async (t) => { // Given an RPC client. const context = createNullContext();