Skip to content

Commit

Permalink
add skipPreflight in sendoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xproflupin committed Feb 24, 2023
1 parent c217651 commit 46b84e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/signAndSendTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const signAndSendTransaction = async (
transaction: Transaction | VersionedTransaction
): Promise<string> => {
try {
const { signature } = await provider.signAndSendTransaction(transaction);
const { signature } = await provider.signAndSendTransaction(transaction, {skipPreflight: false});
return signature;
} catch (error) {
console.warn(error);
Expand Down

0 comments on commit 46b84e5

Please sign in to comment.