@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.37.1",
3
+ "version": "1.37.2",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -3878,7 +3878,14 @@ export class Connection {
3878
3878
  ): Promise<RpcResponseAndContext<SimulatedTransactionResponse>> {
3879
3879
  let transaction;
3880
3880
  if (transactionOrMessage instanceof Transaction) {
3881
- transaction = transactionOrMessage;
3881
+ let originalTx: Transaction = transactionOrMessage;
3882
+ transaction = new Transaction({
3883
+ recentBlockhash: originalTx.recentBlockhash,
3884
+ nonceInfo: originalTx.nonceInfo,
3885
+ feePayer: originalTx.feePayer,
3886
+ signatures: [...originalTx.signatures],
3887
+ });
3888
+ transaction.instructions = transactionOrMessage.instructions;
3882
3889
  } else {
3883
3890
  transaction = Transaction.populate(transactionOrMessage);
3884
3891
  }
@@ -4154,6 +4161,9 @@ export class Connection {
4154
4161
  Object.values(this._accountChangeSubscriptions).forEach(
4155
4162
  s => (s.subscriptionId = null),
4156
4163
  );
4164
+ Object.values(this._logsSubscriptions).forEach(
4165
+ s => (s.subscriptionId = null),
4166
+ );
4157
4167
  Object.values(this._programAccountChangeSubscriptions).forEach(
4158
4168
  s => (s.subscriptionId = null),
4159
4169
  );