Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: update deprecated solana web3.js methods #515

Merged

Conversation

kev1n-peters
Copy link
Contributor

getRecentBlockhash is deprecated and being removed in solana-core 2.0 https://github.com/anza-xyz/agave/wiki/Agave-v2.0-Transition-Guide

Copy link
Collaborator

@nvsriram nvsriram left a comment

Choose a reason for hiding this comment

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

I believe connection.sendTransaction(...) and connection.confirmTransaction(...) are also deprecated (at least the way they are used in this file). It might be a good idea to replace those with sendAndConfirmTransaction(...):

await sendAndConfirmTransaction(connection, transaction, [payer, ...], {
  commitment: "confirmed",
});

Copy link
Collaborator

@nvsriram nvsriram left a comment

Choose a reason for hiding this comment

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

LGTM!

@kev1n-peters kev1n-peters merged commit d7fc284 into wormhole-foundation:main Sep 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants