Socket
Socket
Sign inDemoInstall

@marinade.finance/web3js-common

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marinade.finance/web3js-common - npm Package Compare versions

Comparing version 2.4.7 to 2.4.8

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc