@marinade.finance/web3js-common
Advanced tools
Comparing version 2.4.7 to 2.4.8
{ | ||
"name": "@marinade.finance/web3js-common", | ||
"version": "2.4.7", | ||
"version": "2.4.8", | ||
"description": "Web3 JS reusable utilities", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
"devDependencies": { | ||
"@marinade.finance/ts-common": "2.4.7", | ||
"@marinade.finance/ts-common": "2.4.8", | ||
"@solana/web3.js": "^1.93.0", | ||
@@ -33,3 +33,3 @@ "@solana/buffer-layout": "^4.0.1", | ||
"peerDependencies": { | ||
"@marinade.finance/ts-common": "2.4.7", | ||
"@marinade.finance/ts-common": "2.4.8", | ||
"@solana/web3.js": "^1.93.0", | ||
@@ -36,0 +36,0 @@ "@solana/buffer-layout": "^4.0.1", |
@@ -28,5 +28,6 @@ "use strict"; | ||
messageWithTransactionError() { | ||
var _a; | ||
const txCauseErrMessage = this.transactionCauseError | ||
? '; transaction error: ' + this.transactionCauseError | ||
: ''; | ||
: '; caused: ' + ((_a = this.cause) === null || _a === void 0 ? void 0 : _a.message); | ||
return this.message + txCauseErrMessage; | ||
@@ -33,0 +34,0 @@ } |
@@ -106,3 +106,3 @@ "use strict"; | ||
// retry when not having recent blockhash | ||
txSignature = await sendRawTransactionWithRetry(connection, transaction, sendOpts); | ||
txSignature = await sendRawTransactionWithRetry(connection, transaction, sendOpts, logger); | ||
// Checking if executed | ||
@@ -148,3 +148,3 @@ txResponse = await confirmTransaction(connection, txSignature, confirmOpts, logger, confirmWaitTime); | ||
exports.updateTransactionBlockhash = updateTransactionBlockhash; | ||
async function sendRawTransactionWithRetry(connection, transaction, sendOpts) { | ||
async function sendRawTransactionWithRetry(connection, transaction, sendOpts, logger) { | ||
try { | ||
@@ -155,3 +155,3 @@ return await connection.sendRawTransaction(transaction.serialize(), sendOpts); | ||
if ((0, ts_common_1.checkErrorMessage)(e, 'blockhash not found')) { | ||
(0, ts_common_1.logDebug)(undefined, 'Blockhash not found, retrying to update transaction blockhash, reason: ' + | ||
(0, ts_common_1.logDebug)(logger, 'Blockhash not found, retrying to update transaction blockhash, reason: ' + | ||
e); | ||
@@ -158,0 +158,0 @@ await updateTransactionBlockhash(transaction, connection); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158358
2279