From b434d83d69bbaea0a2e770695d076532abd859b3 Mon Sep 17 00:00:00 2001 From: John Mitsch Date: Wed, 20 Mar 2024 16:20:03 -0300 Subject: [PATCH] just kidding about rename --- packages/libs/sdk/spec/solana/solanaClient.test.ts | 2 +- packages/libs/sdk/src/solana/solana.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/libs/sdk/spec/solana/solanaClient.test.ts b/packages/libs/sdk/spec/solana/solanaClient.test.ts index cf842527..eb2d8642 100644 --- a/packages/libs/sdk/spec/solana/solanaClient.test.ts +++ b/packages/libs/sdk/spec/solana/solanaClient.test.ts @@ -95,7 +95,7 @@ describe('solana client', () => { recordingName: 'solana-client-fetchEstimatePriorityFees', }, async () => { - await expect(solana.getPriorityFeeEstimates()).resolves + await expect(solana.fetchEstimatePriorityFees()).resolves .toMatchInlineSnapshot(` Object { "id": 1, diff --git a/packages/libs/sdk/src/solana/solana.ts b/packages/libs/sdk/src/solana/solana.ts index 97b03588..6d50aa99 100644 --- a/packages/libs/sdk/src/solana/solana.ts +++ b/packages/libs/sdk/src/solana/solana.ts @@ -85,7 +85,7 @@ export class Solana { } // Get the priority fee averages based on fee data from the latest blocks - async getPriorityFeeEstimates( + async fetchEstimatePriorityFees( args: EstimatePriorityFeesParams = {} ): Promise { const payload: PriorityFeeRequestPayload = { @@ -119,7 +119,7 @@ export class Solana { private async createDynamicPriorityFeeInstruction( feeType: PriorityFeeLevels = 'medium' ) { - const { result } = await this.getPriorityFeeEstimates({}); + const { result } = await this.fetchEstimatePriorityFees({}); const priorityFee = result.per_compute_unit[feeType]; const priorityFeeInstruction = ComputeBudgetProgram.setComputeUnitPrice({ microLamports: priorityFee,