@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.
package/lib/index.cjs.js CHANGED
@@ -6756,7 +6756,14 @@ class Connection {
6756
6756
  let transaction;
6757
6757
 
6758
6758
  if (transactionOrMessage instanceof Transaction) {
6759
- transaction = transactionOrMessage;
6759
+ let originalTx = transactionOrMessage;
6760
+ transaction = new Transaction({
6761
+ recentBlockhash: originalTx.recentBlockhash,
6762
+ nonceInfo: originalTx.nonceInfo,
6763
+ feePayer: originalTx.feePayer,
6764
+ signatures: [...originalTx.signatures]
6765
+ });
6766
+ transaction.instructions = transactionOrMessage.instructions;
6760
6767
  } else {
6761
6768
  transaction = Transaction.populate(transactionOrMessage);
6762
6769
  }
@@ -7029,6 +7036,7 @@ class Connection {
7029
7036
 
7030
7037
  _resetSubscriptions() {
7031
7038
  Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7039
+ Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
7032
7040
  Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7033
7041
  Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
7034
7042
  Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);