-
Notifications
You must be signed in to change notification settings - Fork 1k
Correct the return type of simulateTransaction when accounts are not loaded
#2865
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
Correct the return type of simulateTransaction when accounts are not loaded
#2865
Conversation
🦋 Changeset detectedLatest commit: 5bb7d21 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
* refactor(experimental): add simulateTransaction RPC call * Change @default to @DefaultValue See https://typedoc.org/tags/defaultValue/
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @steveluscher and the rest of your teammates on |
f1baa9e to
5bb7d21
Compare
| base58EncodedWireTransaction: Base58EncodedBytes, | ||
| config?: SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase, | ||
| ): SimulateTransactionApiResponseBase & { accounts: null }; | ||
| ): SimulateTransactionApiResponseBase & SolanaRpcResponse<{ readonly accounts: null }>; |
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 think this points out a broader issue.
In lots of places, we're including the RpcResponse wrapper in the "base response", but in others, we do something like:
RpcResponse<Base & { ... }>
I think it should always be the latter. I'll make a note to comb for this in my pass over RPC stuff.
|
🎉 This PR is included in version 1.93.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
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. |

This was returning
accounts: nullat the top level instead of insidevalueSee 7192f3d