Skip to content

Commit

Permalink
Correct type of replacementBlockhash in simulateTransaction (#3454)
Browse files Browse the repository at this point in the history
* Correct type of replacementBlockhash in simulateTransaction

* Add changeset
  • Loading branch information
mcintyre94 authored Oct 29, 2024
1 parent d4965ec commit 1fde4b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-zebras-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@solana/rpc-api': patch
---

Correct type of replacementBlockhash in simulateTransaction
5 changes: 2 additions & 3 deletions packages/rpc-api/src/simulateTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import type {
AccountInfoWithJsonData,
Base58EncodedBytes,
Base64EncodedDataResponse,
Blockhash,
Commitment,
Slot,
SolanaRpcResponse,
TransactionError,
TransactionForFullMetaInnerInstructionsParsed,
TransactionForFullMetaInnerInstructionsUnparsed,
} from '@solana/rpc-types';
import type { Base64EncodedWireTransaction } from '@solana/transactions';
import type { Base64EncodedWireTransaction, TransactionBlockhashLifetime } from '@solana/transactions';

type SimulateTransactionConfigBase = Readonly<{
/**
Expand Down Expand Up @@ -94,7 +93,7 @@ type SimulateTransactionApiResponseBase = Readonly<{
// `replacementBlockhash` only appears on the return type when `replaceRecentBlockhash` is set
// to `true` in the call to `simulateTransaction`.
/** The blockhash that was used to simulate the transaction when `replaceRecentBlockhash` is `true` */
replacementBlockhash?: Blockhash;
replacementBlockhash?: TransactionBlockhashLifetime;
/** The most-recent return data generated by an instruction in the transaction */
returnData: Readonly<{
/** The return data itself, as base-64 encoded binary data */
Expand Down

0 comments on commit 1fde4b1

Please sign in to comment.