ts: comment out, tsc complains

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-10-07 14:05:49 +02:00
parent 8e919bb741
commit 8f6fa5134d
1 changed files with 10 additions and 16 deletions

View File

@ -4,7 +4,6 @@ import {
Transaction,
TransactionInstruction,
} from '@solana/web3.js';
import { buildVersionedTx } from '../utils';
export async function sendTransaction(
provider: AnchorProvider,
@ -17,13 +16,9 @@ export async function sendTransaction(
opts.preflightCommitment,
);
let tx: Transaction = new Transaction();
const altsEnabled = false;
if (altsEnabled) {
tx = await buildVersionedTx(provider, ixs, opts.additionalSigners, alts);
} else {
const payer = (provider as AnchorProvider).wallet;
tx = new Transaction();
// const tx = await buildVersionedTx(provider, ixs, opts.additionalSigners, alts);
const tx = new Transaction();
tx.recentBlockhash = latestBlockhash.blockhash;
tx.lastValidBlockHeight = latestBlockhash.lastValidBlockHeight;
tx.feePayer = payer.publicKey;
@ -32,7 +27,6 @@ export async function sendTransaction(
tx.partialSign(...opts.additionalSigners);
}
await payer.signTransaction(tx);
}
const signature = await connection.sendRawTransaction(tx.serialize(), {
skipPreflight: true,