Closed czkz closed 2 months ago
It should probably be like this:
const failedTx = await this.connection.getTransaction(txSig, { commitment: "confirmed", maxSupportedTransactionVersion: isVersionedTransaction(tx) ? 0 : undefined });
Yeah, this looks better. Feel free to PR this fix.
Got the following error after calling
provider.sendAndConfirm(VersionedTransaction)
:sendAndConfirm()
doesn't setmaxSupportedTransactionVersion
ingetTransaction()
: https://github.com/coral-xyz/anchor/blob/fefa69519fb9b875cac72469b8d5021f8c2d90a5/ts/packages/anchor/src/provider.ts#L177-L179It should probably be like this: