@solana/web3.js 1.59.0 → 1.59.1
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 +11 -17
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +11 -17
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +11 -17
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.esm.js +11 -17
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +11 -17
- 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/lib/index.native.js +11 -17
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/transaction/message.ts +15 -24
package/lib/index.iife.js
CHANGED
|
@@ -12430,10 +12430,10 @@ var solanaWeb3 = (function (exports) {
|
|
|
12430
12430
|
|
|
12431
12431
|
class TransactionMessage {
|
|
12432
12432
|
constructor(args) {
|
|
12433
|
-
this.
|
|
12433
|
+
this.payerKey = void 0;
|
|
12434
12434
|
this.instructions = void 0;
|
|
12435
12435
|
this.recentBlockhash = void 0;
|
|
12436
|
-
this.
|
|
12436
|
+
this.payerKey = args.payerKey;
|
|
12437
12437
|
this.instructions = args.instructions;
|
|
12438
12438
|
this.recentBlockhash = args.recentBlockhash;
|
|
12439
12439
|
}
|
|
@@ -12454,6 +12454,12 @@ var solanaWeb3 = (function (exports) {
|
|
|
12454
12454
|
const numWritableUnsignedAccounts = message.staticAccountKeys.length - numReadonlyUnsignedAccounts;
|
|
12455
12455
|
assert$1(numWritableUnsignedAccounts >= 0, 'Message header is invalid');
|
|
12456
12456
|
const accountKeys = message.getAccountKeys(args);
|
|
12457
|
+
const payerKey = accountKeys.get(0);
|
|
12458
|
+
|
|
12459
|
+
if (payerKey === undefined) {
|
|
12460
|
+
throw new Error('Failed to decompile message because no account keys were found');
|
|
12461
|
+
}
|
|
12462
|
+
|
|
12457
12463
|
const instructions = [];
|
|
12458
12464
|
|
|
12459
12465
|
for (const compiledIx of compiledInstructions) {
|
|
@@ -12499,35 +12505,23 @@ var solanaWeb3 = (function (exports) {
|
|
|
12499
12505
|
}
|
|
12500
12506
|
|
|
12501
12507
|
return new TransactionMessage({
|
|
12502
|
-
|
|
12508
|
+
payerKey,
|
|
12503
12509
|
instructions,
|
|
12504
12510
|
recentBlockhash
|
|
12505
12511
|
});
|
|
12506
12512
|
}
|
|
12507
12513
|
|
|
12508
12514
|
compileToLegacyMessage() {
|
|
12509
|
-
const payerKey = this.accountKeys.get(0);
|
|
12510
|
-
|
|
12511
|
-
if (payerKey === undefined) {
|
|
12512
|
-
throw new Error('Failed to compile message because no account keys were found');
|
|
12513
|
-
}
|
|
12514
|
-
|
|
12515
12515
|
return Message.compile({
|
|
12516
|
-
payerKey,
|
|
12516
|
+
payerKey: this.payerKey,
|
|
12517
12517
|
recentBlockhash: this.recentBlockhash,
|
|
12518
12518
|
instructions: this.instructions
|
|
12519
12519
|
});
|
|
12520
12520
|
}
|
|
12521
12521
|
|
|
12522
12522
|
compileToV0Message(addressLookupTableAccounts) {
|
|
12523
|
-
const payerKey = this.accountKeys.get(0);
|
|
12524
|
-
|
|
12525
|
-
if (payerKey === undefined) {
|
|
12526
|
-
throw new Error('Failed to compile message because no account keys were found');
|
|
12527
|
-
}
|
|
12528
|
-
|
|
12529
12523
|
return MessageV0.compile({
|
|
12530
|
-
payerKey,
|
|
12524
|
+
payerKey: this.payerKey,
|
|
12531
12525
|
recentBlockhash: this.recentBlockhash,
|
|
12532
12526
|
instructions: this.instructions,
|
|
12533
12527
|
addressLookupTableAccounts
|