@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.
@@ -7250,7 +7250,14 @@ class Connection {
7250
7250
  let transaction;
7251
7251
 
7252
7252
  if (transactionOrMessage instanceof Transaction) {
7253
- transaction = transactionOrMessage;
7253
+ let originalTx = transactionOrMessage;
7254
+ transaction = new Transaction({
7255
+ recentBlockhash: originalTx.recentBlockhash,
7256
+ nonceInfo: originalTx.nonceInfo,
7257
+ feePayer: originalTx.feePayer,
7258
+ signatures: [...originalTx.signatures]
7259
+ });
7260
+ transaction.instructions = transactionOrMessage.instructions;
7254
7261
  } else {
7255
7262
  transaction = Transaction.populate(transactionOrMessage);
7256
7263
  }
@@ -7523,6 +7530,7 @@ class Connection {
7523
7530
 
7524
7531
  _resetSubscriptions() {
7525
7532
  Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7533
+ Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
7526
7534
  Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7527
7535
  Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
7528
7536
  Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);