@huma-finance/widgets 0.0.62-beta.730 → 0.0.62-beta.733
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.cjs
CHANGED
|
@@ -8843,11 +8843,13 @@ function SolanaTxSendModal(_ref) {
|
|
|
8843
8843
|
return;
|
|
8844
8844
|
}
|
|
8845
8845
|
try {
|
|
8846
|
+
// Optimize transaction
|
|
8846
8847
|
const lockedWritableAccounts = sdk.extractWritableAccounts(tx);
|
|
8847
8848
|
const optimizedTx = await sdk.buildOptimalTransactionFromConnection(tx, lockedWritableAccounts, connection);
|
|
8848
8849
|
const signature = await sendTransaction(optimizedTx, connection, {
|
|
8849
8850
|
maxRetries: 5,
|
|
8850
|
-
preflightCommitment: 'confirmed'
|
|
8851
|
+
preflightCommitment: 'confirmed',
|
|
8852
|
+
skipPreflight: true
|
|
8851
8853
|
});
|
|
8852
8854
|
setSignature(signature);
|
|
8853
8855
|
dispatch(setSolanaSignature(signature));
|