@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.browser.cjs.js +9 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +9 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -1
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +11 -1
package/package.json
CHANGED
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
|
-
|
|
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
|
);
|