Skip to content

Commit

Permalink
fix: getRecentPrioritizationFees works with commitment (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lou-Kamades committed Jul 31, 2023
1 parent 0324614 commit 9f0ae41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/library-legacy/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4547,7 +4547,7 @@ export class Connection {
config?: GetRecentPrioritizationFeesConfig,
): Promise<RecentPrioritizationFees[]> {
const accounts = config?.lockedWritableAccounts?.map(key => key.toBase58());
const args = this._buildArgs(accounts?.length ? [accounts] : []);
const args = accounts?.length ? [accounts] : [];
const unsafeRes = await this._rpcRequest(
'getRecentPrioritizationFees',
args,
Expand Down

0 comments on commit 9f0ae41

Please sign in to comment.