-
Notifications
You must be signed in to change notification settings - Fork 655
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/js: Replace deprecated function with signSendAndConfirmTransaction #3239
Conversation
@kev1n-peters or @nonergodic can you plz take a peek at this one? |
Given that the max retries can now be specified via options, isn't the right call here to deprecate |
Hey @nonergodic, I'm in complete favor of deprecating the Would this deprecation message suffice?
|
Looks good to me 👍 |
@nonergodic Perfect! I've committed the suggested changes. |
Summary
This pull request addresses the deprecation of the
sendAndConfirmTransactionsWithRetry
function in thepostVaaWithRetry
method. This function was replaced with the newsignSendAndConfirmTransaction
function as per the recent updates in the library. The retries are done with theConfirmOption
and handled internally in the Solana library.Changes
The main changes involve replacing the deprecated
sendAndConfirmTransactionsWithRetry
function with thesignSendAndConfirmTransaction
function in thepostVaaWithRetry
method. ThesignSendAndConfirmTransaction
function handles each transaction individually, so the code has been adjusted to process each transaction in a loop.This change was required because
sendAndConfirmTransactionsWithRetry
was marked as deprecated in the library, and the library maintainers recommended usingsignSendAndConfirmTransaction
instead.