Skip to content

Commit

Permalink
just kidding about rename
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpmitsch committed Mar 20, 2024
1 parent 86e04c4 commit b434d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/libs/sdk/spec/solana/solanaClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/libs/sdk/src/solana/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PriorityFeeResponseData> {
const payload: PriorityFeeRequestPayload = {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b434d83

Please sign in to comment.