Only include replacementBlockhash
in the simulation result type when replaceRecentBlockhash
is true
#21
Labels
enhancement
New feature or request
In
SimulateTransactionApi
we only returninnerInstructions
in the response when theinnerInstructions
config property istrue
. It would be nice to do the same forreplacementBlockhash
so that you don't have to null-check it.To do so with the current design of the types would require all of the overloads to be duplicated to handle that case, as they were in solana-labs/solana-web3.js#2868. That would yield 32 overloads and require that we increase this number. That, in turn, would harm performance, so in solana-labs/solana-web3.js#2870 we decided not to do it.
The job is to find a way to make this happen.
The text was updated successfully, but these errors were encountered: