@solana/web3.js 1.43.4 → 1.44.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/lib/index.browser.cjs.js +6 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.esm.js +6 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -2
- 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 +3 -3
- package/src/system-program.ts +9 -1
- package/src/transaction.ts +7 -2
package/lib/index.browser.esm.js
CHANGED
|
@@ -2594,10 +2594,10 @@ class Transaction {
|
|
|
2594
2594
|
if (x.isWritable !== y.isWritable) {
|
|
2595
2595
|
// Writable accounts always come before read-only accounts
|
|
2596
2596
|
return x.isWritable ? -1 : 1;
|
|
2597
|
-
} // Otherwise, sort by pubkey.
|
|
2597
|
+
} // Otherwise, sort by pubkey, stringwise.
|
|
2598
2598
|
|
|
2599
2599
|
|
|
2600
|
-
return x.pubkey.
|
|
2600
|
+
return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
|
|
2601
2601
|
}); // Move fee payer to the front
|
|
2602
2602
|
|
|
2603
2603
|
const feePayerIndex = uniqueMetas.findIndex(x => {
|
|
@@ -3549,6 +3549,10 @@ const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
|
|
|
3549
3549
|
TransferWithSeed: {
|
|
3550
3550
|
index: 11,
|
|
3551
3551
|
layout: BufferLayout.struct([BufferLayout.u32('instruction'), u64('lamports'), rustString('seed'), publicKey('programId')])
|
|
3552
|
+
},
|
|
3553
|
+
UpgradeNonceAccount: {
|
|
3554
|
+
index: 12,
|
|
3555
|
+
layout: BufferLayout.struct([BufferLayout.u32('instruction')])
|
|
3552
3556
|
}
|
|
3553
3557
|
});
|
|
3554
3558
|
/**
|