@solana/web3.js 1.37.1 → 1.37.2

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.
@@ -7218,7 +7218,14 @@ class Connection {
7218
7218
  let transaction;
7219
7219
 
7220
7220
  if (transactionOrMessage instanceof Transaction) {
7221
- transaction = transactionOrMessage;
7221
+ let originalTx = transactionOrMessage;
7222
+ transaction = new Transaction({
7223
+ recentBlockhash: originalTx.recentBlockhash,
7224
+ nonceInfo: originalTx.nonceInfo,
7225
+ feePayer: originalTx.feePayer,
7226
+ signatures: [...originalTx.signatures]
7227
+ });
7228
+ transaction.instructions = transactionOrMessage.instructions;
7222
7229
  } else {
7223
7230
  transaction = Transaction.populate(transactionOrMessage);
7224
7231
  }
@@ -7491,6 +7498,7 @@ class Connection {
7491
7498
 
7492
7499
  _resetSubscriptions() {
7493
7500
  Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7501
+ Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
7494
7502
  Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7495
7503
  Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
7496
7504
  Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);