@solana/web3.js 1.37.0 → 1.38.0
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/README.md +4 -3
- package/lib/index.browser.cjs.js +9 -7
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -7
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -7
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +9 -7
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -7
- 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 +2 -7
- package/src/connection.ts +11 -6
- package/module.flow.js +0 -4412
package/lib/index.browser.esm.js
CHANGED
|
@@ -7218,7 +7218,14 @@ class Connection {
|
|
|
7218
7218
|
let transaction;
|
|
7219
7219
|
|
|
7220
7220
|
if (transactionOrMessage instanceof Transaction) {
|
|
7221
|
-
|
|
7221
|
+
let originalTx = transactionOrMessage;
|
|
7222
|
+
transaction = new Transaction({
|
|
7223
|
+
recentBlockhash: originalTx.recentBlockhash,
|
|
7224
|
+
nonceInfo: originalTx.nonceInfo,
|
|
7225
|
+
feePayer: originalTx.feePayer,
|
|
7226
|
+
signatures: [...originalTx.signatures]
|
|
7227
|
+
});
|
|
7228
|
+
transaction.instructions = transactionOrMessage.instructions;
|
|
7222
7229
|
} else {
|
|
7223
7230
|
transaction = Transaction.populate(transactionOrMessage);
|
|
7224
7231
|
}
|
|
@@ -7386,12 +7393,6 @@ class Connection {
|
|
|
7386
7393
|
|
|
7387
7394
|
if ('data' in res.error) {
|
|
7388
7395
|
logs = res.error.data.logs;
|
|
7389
|
-
|
|
7390
|
-
if (logs && Array.isArray(logs)) {
|
|
7391
|
-
const traceIndent = '\n ';
|
|
7392
|
-
const logTrace = traceIndent + logs.join(traceIndent);
|
|
7393
|
-
console.error(res.error.message, logTrace);
|
|
7394
|
-
}
|
|
7395
7396
|
}
|
|
7396
7397
|
|
|
7397
7398
|
throw new SendTransactionError('failed to send transaction: ' + res.error.message, logs);
|
|
@@ -7497,6 +7498,7 @@ class Connection {
|
|
|
7497
7498
|
|
|
7498
7499
|
_resetSubscriptions() {
|
|
7499
7500
|
Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
|
|
7501
|
+
Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
|
|
7500
7502
|
Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
|
|
7501
7503
|
Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
|
|
7502
7504
|
Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);
|