-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(connection.ts): implement getTransactions #23633
Conversation
implement getTransactions which retrieves multiple transaction responses in a single RPC call
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This stale pull request has been automatically closed. Thank you for your contributions. |
}); | ||
|
||
const unsafeRes = await this._rpcBatchRequest(batch); | ||
const res = unsafeRes.map((unsafeRes: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow, the type of res
here is any
, despite TypeScript knowing the type of res.result
.
Fixed in #26099.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is because both variables are named the same, and one shadows the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If true, we should definitely install the no-shadow
linter. https://eslint.org/docs/rules/no-shadow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured out why this happened. We had insufficient type coverage here, so you missed this error. #26102
implement getTransactions which retrieves multiple transaction responses in a single RPC call Co-authored-by: obiwan <you@example.com>
implement getTransactions which retrieves multiple transaction responses in a single RPC call Co-authored-by: obiwan <you@example.com>
implement getTransactions which retrieves multiple transaction responses in a single RPC call Co-authored-by: obiwan <you@example.com>
implement getTransactions which retrieves multiple transaction responses in a single RPC call Co-authored-by: obiwan <you@example.com>
implement getTransactions which retrieves multiple transaction responses in a single RPC call Co-authored-by: obiwan <you@example.com>
implement getTransactions which retrieves multiple transaction responses in a single RPC call
Problem
currently
getParsedConfirmedTransactions
is the only method which lets you retrieve multiple txs in a single call, however theParsedTransactionWithMeta
structure is different from aTransactionResponse
structureSummary of Changes
implement getTransactions which retrieves multiple transaction responses in a single RPC call
Fixes #