Skip to content

Conversation

@jeivardan
Copy link
Contributor

Fixes #1095

@mergify mergify bot added the community label Apr 1, 2023
@mergify mergify bot requested a review from a team April 1, 2023 16:55
Copy link
Contributor

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy

async getRecentPrioritizationFees(
publicKeys?: PublicKey[],
): Promise<RecentPrioritizationFees[]> {
const keys = publicKeys ? publicKeys?.map(key => key.toBase58()) : [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the spec, I think this should be undefined when:

  1. No keys were supplied.
  2. A zero-length array was supplied.

});

it('get recent prioritization fee', async () => {
if (mockServer) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we let these run in live mode, and just assert on the return values being numeric.

@steveluscher steveluscher added automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Apr 4, 2023
@steveluscher steveluscher merged commit c64b6e4 into solana-foundation:master Apr 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

🎉 This PR is included in version 1.75.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web3.js] Add getRecentPrioritizationFees API

2 participants