@solana/web3.js 1.63.0 → 1.63.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.d.ts CHANGED
@@ -1562,10 +1562,10 @@ declare module '@solana/web3.js' {
1562
1562
  };
1563
1563
  export type GetAccountKeysArgs =
1564
1564
  | {
1565
- accountKeysFromLookups: AccountKeysFromLookups;
1565
+ accountKeysFromLookups?: AccountKeysFromLookups | null;
1566
1566
  }
1567
1567
  | {
1568
- addressLookupTableAccounts: AddressLookupTableAccount[];
1568
+ addressLookupTableAccounts?: AddressLookupTableAccount[] | null;
1569
1569
  };
1570
1570
  export class MessageV0 {
1571
1571
  header: MessageHeader;
package/lib/index.esm.js CHANGED
@@ -976,13 +976,13 @@ class MessageV0 {
976
976
  getAccountKeys(args) {
977
977
  let accountKeysFromLookups;
978
978
 
979
- if (args && 'accountKeysFromLookups' in args) {
979
+ if (args && 'accountKeysFromLookups' in args && args.accountKeysFromLookups) {
980
980
  if (this.numAccountKeysFromLookups != args.accountKeysFromLookups.writable.length + args.accountKeysFromLookups.readonly.length) {
981
981
  throw new Error('Failed to get account keys because of a mismatch in the number of account keys from lookups');
982
982
  }
983
983
 
984
984
  accountKeysFromLookups = args.accountKeysFromLookups;
985
- } else if (args && 'addressLookupTableAccounts' in args) {
985
+ } else if (args && 'addressLookupTableAccounts' in args && args.addressLookupTableAccounts) {
986
986
  accountKeysFromLookups = this.resolveAddressTableLookups(args.addressLookupTableAccounts);
987
987
  } else if (this.addressTableLookups.length > 0) {
988
988
  throw new Error('Failed to get account keys because address table lookups were not resolved');