I'm trying to specify skipPreflight in sendTransaction method the next way:
await connection.sendTransaction(transaction, {
skipPreflight: true,
});
where transaction is VersionedTransaction. According to @solana/web3.js docs, in versioned transaction case this function takes only 2 args, where the first is VersionedTransaction and the second are options.
However, looking at a method realization code, in case of versioned transaction sendTransaction method passes to sendRawTransaction "options" argument, which is the third and because is not defined (I passed only 2 args according to docs), rather than passing the second "signersOrOptions", which I specified to contain options.
So how to pass options to sendTransaction method in VersionedTransaction case?
signersOrOptions
instead ofoptions
on that line.