In SimulateTransactionApi we only return innerInstructions in the response when the innerInstructions config property is true. It would be nice to do the same for replacementBlockhash 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 #2868. That would yield 32 overloads and require that we increase this number. That, in turn, would harm performance, so in #2870 we decided not to do it.
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 #2868. That would yield 32 overloads and require that we increase this number. That, in turn, would harm performance, so in #2870 we decided not to do it.
The job is to find a way to make this happen.