-
Notifications
You must be signed in to change notification settings - Fork 924
Correct the return type of simulateTransaction
when accounts are not loaded
#2865
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 Graphite |
f1baa9e
to
5bb7d21
Compare
@@ -127,7 +127,7 @@ export interface SimulateTransactionApi extends RpcApiMethods { | |||
simulateTransaction( | |||
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: null
at the top level instead of insidevalue
See 7192f3d