@solana/web3.js 1.77.0 → 1.77.2

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.d.ts CHANGED
@@ -3704,7 +3704,7 @@ export const SolanaJSONRPCErrorCode: {
3704
3704
  readonly JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION: -32015;
3705
3705
  readonly JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED: -32016;
3706
3706
  };
3707
- type SolanaJSONRPCErrorCodeEnum = typeof SolanaJSONRPCErrorCode[keyof typeof SolanaJSONRPCErrorCode];
3707
+ type SolanaJSONRPCErrorCodeEnum = (typeof SolanaJSONRPCErrorCode)[keyof typeof SolanaJSONRPCErrorCode];
3708
3708
  export class SolanaJSONRPCError extends Error {
3709
3709
  code: SolanaJSONRPCErrorCodeEnum | unknown;
3710
3710
  data?: any;
package/lib/index.esm.js CHANGED
@@ -1392,7 +1392,15 @@ class Transaction {
1392
1392
  return x.isWritable ? -1 : 1;
1393
1393
  }
1394
1394
  // Otherwise, sort by pubkey, stringwise.
1395
- return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
1395
+ const options = {
1396
+ localeMatcher: 'best fit',
1397
+ usage: 'sort',
1398
+ sensitivity: 'variant',
1399
+ ignorePunctuation: false,
1400
+ numeric: false,
1401
+ caseFirst: 'lower'
1402
+ };
1403
+ return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58(), 'en', options);
1396
1404
  });
1397
1405
 
1398
1406
  // Move fee payer to the front
@@ -11687,7 +11695,7 @@ class VoteProgram {
11687
11695
  }
11688
11696
  }
11689
11697
  VoteProgram.programId = new PublicKey('Vote111111111111111111111111111111111111111');
11690
- VoteProgram.space = process.env.TEST_LIVE ? 3762 : 3731;
11698
+ VoteProgram.space = 3731;
11691
11699
 
11692
11700
  const VALIDATOR_INFO_KEY = new PublicKey('Va1idator1nfo111111111111111111111111111111');
11693
11701