Skip to content

Commit

Permalink
Merge pull request #966 from mrgnlabs/fix/transaction-hash
Browse files Browse the repository at this point in the history
fix(mfi-v2-ui): transaction hash missing in action complete
  • Loading branch information
k0beLeenders authored Nov 21, 2024
2 parents 2a8b1f1 + 6a7a6f8 commit f8d20ef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/marginfi-client-v2/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,18 +1064,18 @@ class MarginfiClient {
};

try {
bundleSignature = (await this.sendTransactionAsGrpcBundle([base58Tx]))[0];
bundleSignature = await this.sendTransactionAsGrpcBundle([base58Tx]);
} catch (e) {
// try {
// bundleSignature = (await this.sendTransactionAsBundle([base58Tx]))[0];
// } catch (e) {
// signature = await connection.sendTransaction(versionedTransaction, {
// // minContextSlot: mergedOpts.minContextSlot,
// skipPreflight: mergedOpts.skipPreflight,
// preflightCommitment: mergedOpts.preflightCommitment,
// maxRetries: mergedOpts.maxRetries,
// });
// }
try {
bundleSignature = await this.sendTransactionAsBundle([base58Tx]);
} catch (e) {
signature = await connection.sendTransaction(versionedTransaction, {
minContextSlot: mergedOpts.minContextSlot,
skipPreflight: mergedOpts.skipPreflight,
preflightCommitment: mergedOpts.preflightCommitment,
maxRetries: mergedOpts.maxRetries,
});
}
}

if (signature !== "") {
Expand Down

0 comments on commit f8d20ef

Please sign in to comment.