@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.iife.js CHANGED
@@ -22514,7 +22514,14 @@ var solanaWeb3 = (function (exports) {
22514
22514
  let transaction;
22515
22515
 
22516
22516
  if (transactionOrMessage instanceof Transaction) {
22517
- transaction = transactionOrMessage;
22517
+ let originalTx = transactionOrMessage;
22518
+ transaction = new Transaction({
22519
+ recentBlockhash: originalTx.recentBlockhash,
22520
+ nonceInfo: originalTx.nonceInfo,
22521
+ feePayer: originalTx.feePayer,
22522
+ signatures: [...originalTx.signatures]
22523
+ });
22524
+ transaction.instructions = transactionOrMessage.instructions;
22518
22525
  } else {
22519
22526
  transaction = Transaction.populate(transactionOrMessage);
22520
22527
  }
@@ -22787,6 +22794,7 @@ var solanaWeb3 = (function (exports) {
22787
22794
 
22788
22795
  _resetSubscriptions() {
22789
22796
  Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
22797
+ Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
22790
22798
  Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
22791
22799
  Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
22792
22800
  Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);