@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.esm.js CHANGED
@@ -6721,7 +6721,14 @@ class Connection {
6721
6721
  let transaction;
6722
6722
 
6723
6723
  if (transactionOrMessage instanceof Transaction) {
6724
- transaction = transactionOrMessage;
6724
+ let originalTx = transactionOrMessage;
6725
+ transaction = new Transaction({
6726
+ recentBlockhash: originalTx.recentBlockhash,
6727
+ nonceInfo: originalTx.nonceInfo,
6728
+ feePayer: originalTx.feePayer,
6729
+ signatures: [...originalTx.signatures]
6730
+ });
6731
+ transaction.instructions = transactionOrMessage.instructions;
6725
6732
  } else {
6726
6733
  transaction = Transaction.populate(transactionOrMessage);
6727
6734
  }
@@ -6994,6 +7001,7 @@ class Connection {
6994
7001
 
6995
7002
  _resetSubscriptions() {
6996
7003
  Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
7004
+ Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
6997
7005
  Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
6998
7006
  Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
6999
7007
  Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);