@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.iife.js
CHANGED
|
@@ -22514,7 +22514,14 @@ var solanaWeb3 = (function (exports) {
|
|
|
22514
22514
|
let transaction;
|
|
22515
22515
|
|
|
22516
22516
|
if (transactionOrMessage instanceof Transaction) {
|
|
22517
|
-
|
|
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
|
}
|
|
@@ -22682,12 +22689,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
22682
22689
|
|
|
22683
22690
|
if ('data' in res.error) {
|
|
22684
22691
|
logs = res.error.data.logs;
|
|
22685
|
-
|
|
22686
|
-
if (logs && Array.isArray(logs)) {
|
|
22687
|
-
const traceIndent = '\n ';
|
|
22688
|
-
const logTrace = traceIndent + logs.join(traceIndent);
|
|
22689
|
-
console.error(res.error.message, logTrace);
|
|
22690
|
-
}
|
|
22691
22692
|
}
|
|
22692
22693
|
|
|
22693
22694
|
throw new SendTransactionError('failed to send transaction: ' + res.error.message, logs);
|
|
@@ -22793,6 +22794,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
22793
22794
|
|
|
22794
22795
|
_resetSubscriptions() {
|
|
22795
22796
|
Object.values(this._accountChangeSubscriptions).forEach(s => s.subscriptionId = null);
|
|
22797
|
+
Object.values(this._logsSubscriptions).forEach(s => s.subscriptionId = null);
|
|
22796
22798
|
Object.values(this._programAccountChangeSubscriptions).forEach(s => s.subscriptionId = null);
|
|
22797
22799
|
Object.values(this._rootSubscriptions).forEach(s => s.subscriptionId = null);
|
|
22798
22800
|
Object.values(this._signatureSubscriptions).forEach(s => s.subscriptionId = null);
|