@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.cjs.js CHANGED
@@ -2652,10 +2652,10 @@ class Transaction {
2652
2652
  if (x.isWritable !== y.isWritable) {
2653
2653
  // Writable accounts always come before read-only accounts
2654
2654
  return x.isWritable ? -1 : 1;
2655
- } // Otherwise, sort by pubkey.
2655
+ } // Otherwise, sort by pubkey, stringwise.
2656
2656
 
2657
2657
 
2658
- return x.pubkey._bn.cmp(y.pubkey._bn);
2658
+ return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
2659
2659
  }); // Move fee payer to the front
2660
2660
 
2661
2661
  const feePayerIndex = uniqueMetas.findIndex(x => {
@@ -3607,6 +3607,10 @@ const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
3607
3607
  TransferWithSeed: {
3608
3608
  index: 11,
3609
3609
  layout: BufferLayout__namespace.struct([BufferLayout__namespace.u32('instruction'), u64('lamports'), rustString('seed'), publicKey('programId')])
3610
+ },
3611
+ UpgradeNonceAccount: {
3612
+ index: 12,
3613
+ layout: BufferLayout__namespace.struct([BufferLayout__namespace.u32('instruction')])
3610
3614
  }
3611
3615
  });
3612
3616
  /**