21 lines
494 B
JavaScript
21 lines
494 B
JavaScript
// @flow
|
|
|
|
import {sendAndConfirmTransaction as realSendAndConfirmTransaction} from '@solana/web3.js';
|
|
import type {
|
|
Account,
|
|
Connection,
|
|
Transaction,
|
|
TransactionSignature,
|
|
} from '@solana/web3.js';
|
|
|
|
export function sendAndConfirmTransaction(
|
|
title: string,
|
|
connection: Connection,
|
|
transaction: Transaction,
|
|
...signers: Array<Account>
|
|
): Promise<TransactionSignature> {
|
|
return realSendAndConfirmTransaction(connection, transaction, signers, {
|
|
skipPreflight: false,
|
|
});
|
|
}
|